Skip to content

Commit 6954775

Browse files
gvanrossummementum
authored andcommitted
pythongh-107082: Remove debug hack from get_first_executor in test_capi.test_misc (python#107085)
(Even though it doesn't look like it fixes pythongh-107082 -- see discussion there -- it still removes debug code that should never have been committed.)
1 parent 406a7e8 commit 6954775

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)