Skip to content

Commit 7fc9be3

Browse files
authored
gh-107082: Remove debug hack from get_first_executor in test_capi.test_misc (#107085)
(Even though it doesn't look like it fixes gh-107082 -- see discussion there -- it still removes debug code that should never have been committed.)
1 parent 9a6b278 commit 7fc9be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_capi/test_misc.py

+1-1
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)