Skip to content

Commit 9daa42b

Browse files
committed
Move test_is_supported_version()
1 parent e9b66fe commit 9daa42b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

numba_cuda/numba/cuda/tests/cudadrv/test_detect.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ def test_cuda_detect(self):
2525
self.assertIn("CUDA devices", output)
2626

2727

28+
class TestSupportedVersion(CUDATestCase):
29+
def test_is_supported_version(self):
30+
# Exercise the `cuda.is_supported_version()` API.
31+
#
32+
# Assume for the purpose of the test that we're running on a supported
33+
# toolkit version; if not, there's not much point in running the test
34+
# suite.
35+
self.assertTrue(cuda.is_supported_version())
36+
37+
2838
@skip_under_cuda_memcheck("Hangs cuda-memcheck")
2939
class TestCUDAFindLibs(CUDATestCase):
3040
def run_cmd(self, cmdline, env):

numba_cuda/numba/cuda/tests/cudadrv/test_runtime.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,6 @@ def test_visible_devices_set_after_import(self):
4343
visible_gpu_count = future.result()
4444
assert visible_gpu_count == 1
4545

46-
def test_is_supported_version(self):
47-
# Exercise the `cuda.is_supported_version()` API.
48-
#
49-
# Assume for the purpose of the test that we're running on a supported
50-
# toolkit version; if not, there's not much point in running the test
51-
# suite.
52-
from numba import cuda
53-
54-
self.assertTrue(cuda.is_supported_version())
55-
5646

5747
if __name__ == "__main__":
5848
unittest.main()

0 commit comments

Comments
 (0)