summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys_settrace.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_sys_settrace.py')
-rw-r--r--Lib/test/test_sys_settrace.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_sys_settrace.py b/Lib/test/test_sys_settrace.py
index 7ec290d..f03b03e 100644
--- a/Lib/test/test_sys_settrace.py
+++ b/Lib/test/test_sys_settrace.py
@@ -2042,6 +2042,15 @@ class JumpTestCase(unittest.TestCase):
output.append(6)
output.append(7)
+ @jump_test(6, 1, [1, 5, 1, 5])
+ def test_jump_over_try_except(output):
+ output.append(1)
+ try:
+ 1 / 0
+ except ZeroDivisionError as e:
+ output.append(5)
+ x = 42 # has to be a two-instruction block
+
@jump_test(2, 4, [1, 4, 5, -4])
def test_jump_across_with(output):
output.append(1)