mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-21 15:03:44 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
13 lines
496 B
Python
13 lines
496 B
Python
from tinygrad.helpers import getenv
|
|
import unittest, importlib
|
|
|
|
@unittest.skipUnless(getenv("MOCKGPU"), '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() |