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