mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-22 21:32:13 +08:00
161005a0c1
date: 2025-11-19T19:10:11 master commit: a29fdbd02407d41ecbcc69d151bb4837bfba3cbc
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() |