MCPcopy
hub / github.com/tinygrad/tinygrad / test_module_runs

Method test_module_runs

test/null/test_device.py:188–190  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

186@unittest.skipIf(OSX and 'libclang' in DLL._loaded_, "MTLCompiler can't be loaded after libclang on OSX")
187class TestRunAsModule(unittest.TestCase):
188 def test_module_runs(self):
189 cpu_line = [l for l in enumerate_devices_str() if "CPU" in l][0]
190 self.assertIn("PASS", cpu_line, f"expected CPU to PASS, got: {cpu_line}")
191
192if __name__ == "__main__":
193 unittest.main()

Callers

nothing calls this directly

Calls 1

enumerate_devices_strFunction · 0.90

Tested by

no test coverage detected