(self)
| 186 | @unittest.skipIf(OSX and 'libclang' in DLL._loaded_, "MTLCompiler can't be loaded after libclang on OSX") |
| 187 | class 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 | |
| 192 | if __name__ == "__main__": |
| 193 | unittest.main() |
nothing calls this directly
no test coverage detected