diff options
author | Guido van Rossum <guido@python.org> | 2023-07-23 01:22:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-23 01:22:33 (GMT) |
commit | 7fc9be350af055538e70ece8d7de78414bad431e (patch) | |
tree | 588be0ff15ac777e27b324869b42a02d31904dae /Lib/test/test_capi/test_misc.py | |
parent | 9a6b278769b9f24e0650283f6c347db8ae52b7b3 (diff) | |
download | cpython-7fc9be350af055538e70ece8d7de78414bad431e.zip cpython-7fc9be350af055538e70ece8d7de78414bad431e.tar.gz cpython-7fc9be350af055538e70ece8d7de78414bad431e.tar.bz2 |
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.)
Diffstat (limited to 'Lib/test/test_capi/test_misc.py')
-rw-r--r-- | Lib/test/test_capi/test_misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py index dc155cc..0d3f939 100644 --- a/Lib/test/test_capi/test_misc.py +++ b/Lib/test/test_capi/test_misc.py @@ -2436,7 +2436,7 @@ def get_first_executor(func): co_code = code.co_code JUMP_BACKWARD = opcode.opmap["JUMP_BACKWARD"] for i in range(0, len(co_code), 2): - if co_code[i] == JUMP_BACKWARD or 1: + if co_code[i] == JUMP_BACKWARD: try: return _testinternalcapi.get_executor(code, i) except ValueError: |