mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-11 00:23:43 +08:00
0e51ecbb7e
version: sunnypilot v2026.003.000 (dev)
date: 2026-09-09T15:43:49
master commit: b255314f5a
13 lines
508 B
Python
13 lines
508 B
Python
from tinygrad.helpers import DEV
|
|
import unittest, importlib
|
|
|
|
@unittest.skipUnless(DEV.interface.startswith("MOCK"), 'Testing mockgpu')
|
|
class TestMockGPU(unittest.TestCase):
|
|
# https://github.com/tinygrad/tinygrad/pull/7627
|
|
def test_import_typing_extensions(self):
|
|
import test.mockgpu.mockgpu # noqa: F401 # pylint: disable=unused-import
|
|
import typing_extensions
|
|
importlib.reload(typing_extensions) # pytest imports typing_extension before mockgpu
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main() |