Skip to content

Commit 38238bc

Browse files
committed
enable test iff pynvjitlink is installed
1 parent b8c03c4 commit 38238bc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
from numba import config
99
from numba.tests.support import run_in_subprocess, override_config
1010

11+
try:
12+
import pynvjitlink # noqa: F401
13+
PYNVJITLINK_INSTALLED = True
14+
except ImportError:
15+
PYNVJITLINK_INSTALLED = False
16+
17+
1118
import itertools
1219
import os
1320
import io
@@ -253,6 +260,7 @@ def kernel():
253260
pass
254261

255262

263+
@unittest.skipIf(not PYNVJITLINK_INSTALLED)
256264
class TestLinkerUsage(CUDATestCase):
257265
"""Test that whether pynvjitlink can be enabled by both environment variable
258266
and modification of config at runtime.

0 commit comments

Comments
 (0)