def test(self): # An error message contains the file name `kern.cu` with self.assertRaisesRegexp(RuntimeError, 'kern.cu'): compiler.nvcc('a')
def test_nvcc_without_command(self): # Check that error message includes command name `nvcc` with self.assertRaisesRegexp(OSError, 'nvcc'): compiler.nvcc('')