diff options
author | Mark Shannon <mark@hotpy.org> | 2020-07-30 09:03:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 09:03:00 (GMT) |
commit | 6e8128f02e1d36e38e5866f9dc36e051caa47bc9 (patch) | |
tree | 69cb790e96057a35333a9a2de94934d9ab3aab9d /Lib/test/test_sys_settrace.py | |
parent | ba18c0b13ba3c08077ea3db6658328523823a33f (diff) | |
download | cpython-6e8128f02e1d36e38e5866f9dc36e051caa47bc9.zip cpython-6e8128f02e1d36e38e5866f9dc36e051caa47bc9.tar.gz cpython-6e8128f02e1d36e38e5866f9dc36e051caa47bc9.tar.bz2 |
bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517)
* Move 'peephole' optimizations into compile.c and perform them directly on the CFG.
Diffstat (limited to 'Lib/test/test_sys_settrace.py')
-rw-r--r-- | Lib/test/test_sys_settrace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sys_settrace.py b/Lib/test/test_sys_settrace.py index 482e918..3f902b1 100644 --- a/Lib/test/test_sys_settrace.py +++ b/Lib/test/test_sys_settrace.py @@ -948,7 +948,7 @@ class JumpTestCase(unittest.TestCase): output.append(11) output.append(12) - @jump_test(5, 11, [2, 4], (ValueError, 'unreachable')) + @jump_test(5, 11, [2, 4], (ValueError, 'after')) def test_no_jump_over_return_try_finally_in_finally_block(output): try: output.append(2) @@ -1457,7 +1457,7 @@ class JumpTestCase(unittest.TestCase): async with asynctracecontext(output, 4): output.append(5) - @jump_test(5, 7, [2, 4], (ValueError, "unreachable")) + @jump_test(5, 7, [2, 4], (ValueError, "after")) def test_no_jump_over_return_out_of_finally_block(output): try: output.append(2) |