diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2024-01-25 12:54:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 12:54:19 (GMT) |
commit | 0315941441f1e5f944a758c67eb1763b00e6e462 (patch) | |
tree | a46c3fc794c26eb887c0c276266be96a7db82fac /Lib/test | |
parent | ea3cd0498c443e93be441736c804258e93d21edd (diff) | |
download | cpython-0315941441f1e5f944a758c67eb1763b00e6e462.zip cpython-0315941441f1e5f944a758c67eb1763b00e6e462.tar.gz cpython-0315941441f1e5f944a758c67eb1763b00e6e462.tar.bz2 |
gh-114265: remove i_loc_propagated, jump threading does not consider line numbers anymore (#114535)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_peepholer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py index 76a6f25..2ea186c 100644 --- a/Lib/test/test_peepholer.py +++ b/Lib/test/test_peepholer.py @@ -1150,10 +1150,11 @@ class DirectCfgOptimizerTests(CfgOptimizationTestCase): lno1, lno2 = (4, 5) with self.subTest(lno = (lno1, lno2), ops = (op1, op2)): insts = get_insts(lno1, lno2, op1, op2) + op = 'JUMP' if 'JUMP' in (op1, op2) else 'JUMP_NO_INTERRUPT' expected_insts = [ ('LOAD_NAME', 0, 10), ('NOP', 0, 4), - (op2, 0, 5), + (op, 0, 5), ] self.cfg_optimization_test(insts, expected_insts, consts=list(range(5))) |