def test_check_cuda_version(self): with self.assertRaises(RuntimeError): build.get_cuda_version() assert build.check_cuda_version(self.compiler, self.settings) assert isinstance(build.get_cuda_version(), int) assert isinstance(build.get_cuda_version(True), str)
def test_check_cuda_version(self): self.assertTrue(build.check_cuda_version( self.compiler, self.settings))