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