Skip to content

Commit 901cf21

Browse files
committed
Remove debug hack from get_first_executor in test_capi.test_misc
1 parent 3aeffc0 commit 901cf21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_capi/test_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2436,7 +2436,7 @@ def get_first_executor(func):
24362436
co_code = code.co_code
24372437
JUMP_BACKWARD = opcode.opmap["JUMP_BACKWARD"]
24382438
for i in range(0, len(co_code), 2):
2439-
if co_code[i] == JUMP_BACKWARD or 1:
2439+
if co_code[i] == JUMP_BACKWARD:
24402440
try:
24412441
return _testinternalcapi.get_executor(code, i)
24422442
except ValueError:

0 commit comments

Comments
 (0)