summaryrefslogtreecommitdiff
path: root/Lib/test/test_sys_settrace.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2019-11-21 09:11:43 +0000
committerGitHub <noreply@github.com>2019-11-21 09:11:43 +0000
commitfee552669f21ca294f57fe0df826945edc779090 (patch)
tree13b461df5a1231220b8f72c197d2731e9cb88d85 /Lib/test/test_sys_settrace.py
parent5dcc06f6e0d7b5d6589085692b86c63e35e2325e (diff)
downloadcpython-git-fee552669f21ca294f57fe0df826945edc779090.tar.gz
Produce cleaner bytecode for 'with' and 'async with' by generating separate code for normal and exceptional paths. (#6641)
Remove BEGIN_FINALLY, END_FINALLY, CALL_FINALLY and POP_FINALLY bytecodes. Implement finally blocks by code duplication. Reimplement frame.lineno setter using line numbers rather than bytecode offsets.
Diffstat (limited to 'Lib/test/test_sys_settrace.py')
-rw-r--r--Lib/test/test_sys_settrace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sys_settrace.py b/Lib/test/test_sys_settrace.py
index d4e1ac2c83..0af015aa56 100644
--- a/Lib/test/test_sys_settrace.py
+++ b/Lib/test/test_sys_settrace.py
@@ -1431,7 +1431,7 @@ output.append(4)
1 / 0
@jump_test(3, 2, [2], event='return', error=(ValueError,
- "can't jump from a yield statement"))
+ "can't jump from a 'yield' statement"))
def test_no_jump_from_yield(output):
def gen():
output.append(2)