runtime.py 358 Bytes
Newer Older
dugupeiwen's avatar
dugupeiwen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'''
The runtime API is unsupported in the simulator, but some stubs are
provided to allow tests to import correctly.
'''


class FakeRuntime(object):
    def get_version(self):
        return (-1, -1)

    def is_supported_version(self):
        return True

    @property
    def supported_versions(self):
        return (-1, -1),


runtime = FakeRuntime()