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