2025-03-08 09:09:31 +00:00
|
|
|
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):
|
2025-04-18 20:38:55 +09:00
|
|
|
import test.mockgpu.mockgpu # noqa: F401 # pylint: disable=unused-import
|
2025-03-08 09:09:31 +00:00
|
|
|
import typing_extensions
|
|
|
|
importlib.reload(typing_extensions) # pytest imports typing_extension before mockgpu
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|