Skip to content

Commit 451c36b

Browse files
committed
Fix flake8
1 parent 447ba68 commit 451c36b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ def f(cond):
9292

9393
def test_bool_type(self):
9494
sig = (types.int32, types.int32)
95+
9596
@cuda.jit("void(int32, int32)", debug=True, opt=False)
9697
def f(x, y):
97-
z = x == y
98+
z = x == y # noqa: F841
9899

99100
llvm_ir = f.inspect_llvm(sig)
100101

@@ -105,7 +106,7 @@ def f(x, y):
105106
mdnode_id = match.group(1)
106107

107108
# verify the DIBasicType has correct encoding attribute DW_ATE_boolean
108-
pat = f'!{mdnode_id}\s+=\s+!DIBasicType\(.*DW_ATE_boolean'
109+
pat = rf'!{mdnode_id}\s+=\s+!DIBasicType\(.*DW_ATE_boolean'
109110
match = re.compile(pat).search(llvm_ir)
110111
self.assertIsNotNone(match, msg=llvm_ir)
111112

0 commit comments

Comments
 (0)