Skip to content

Commit f431d04

Browse files
author
Cristiano Köhler
committed
Added missing reasons for skipping
1 parent 9363337 commit f431d04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elephant/test/test_asset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ def test_invalid_threads_parameter(self):
808808
cuda_threads=cuda_threads,
809809
)
810810

811-
@unittest.skipUnless(HAVE_CUDA)
811+
@unittest.skipUnless(HAVE_CUDA, "CUDA not available")
812812
def test_cuda_threads(self):
813813
os.environ["ELEPHANT_USE_CUDA"] = "1"
814814
os.environ["ELEPHANT_USE_OPENCL"] = "0"
@@ -822,7 +822,7 @@ def test_cuda_threads(self):
822822
)
823823
assert_array_almost_equal(jmat, self.expected_jmat)
824824

825-
@unittest.skipUnless(HAVE_PYOPENCL)
825+
@unittest.skipUnless(HAVE_PYOPENCL, "PyOpenCL not available")
826826
def test_pyopencl_threads(self):
827827
os.environ["ELEPHANT_USE_CUDA"] = "0"
828828
os.environ["ELEPHANT_USE_OPENCL"] = "1"

0 commit comments

Comments
 (0)