Skip to content

Commit a9765f2

Browse files
committed
Fix test_debug checks on Python 3.13 onwards
The Python version check need not have an upper bound.
1 parent a8f5914 commit a9765f2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

numba_cuda/numba/cuda/tests/cudapy/test_debug.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ def check_debug_output(self, out, enabled_dumps):
4848
self.assertRaises(AssertionError, check_meth, out)
4949

5050
def _check_dump_bytecode(self, out):
51-
if PYVERSION in ((3, 11), (3, 12)):
51+
if PYVERSION > (3, 10):
5252
# binop with arg=0 is binary add, see CPython dis.py and opcode.py
5353
self.assertIn('BINARY_OP(arg=0', out)
54-
elif PYVERSION in ((3, 9), (3, 10)):
55-
self.assertIn('BINARY_ADD', out)
5654
else:
57-
raise NotImplementedError(PYVERSION)
55+
self.assertIn('BINARY_ADD', out)
5856

5957
def _check_dump_cfg(self, out):
6058
self.assertIn('CFG dominators', out)

0 commit comments

Comments
 (0)