Skip to content

Commit 52df913

Browse files
committed
chore: remove specific warning in favor of checking only the matching text
1 parent cfbb804 commit 52df913

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from llvmlite import ir
77
from numba.cuda.cudadrv import nvrtc, nvvm, runtime
8-
from numba.cuda.cudadrv.error import NvvmWarning
98
from numba.cuda.testing import unittest
109
from numba.cuda.cudadrv.nvvm import LibDevice, NvvmError, NVVM
1110
from numba.cuda.testing import skip_on_cudasim
@@ -129,7 +128,7 @@ def test_nvvm_warning(self):
129128
kernel.attributes.add("noinline")
130129

131130
code = str(m)
132-
with pytest.warns(NvvmWarning, match="overriding noinline attribute"):
131+
with pytest.warns(Warning, match="overriding noinline attribute"):
133132
nvvm.compile_ir(code)
134133

135134

0 commit comments

Comments
 (0)