diff options
| author | Mark Shannon <mark@hotpy.org> | 2021-04-30 14:32:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-30 14:32:47 +0100 |
| commit | 5979e81a212949c62c2490167c9137d233d7de64 (patch) | |
| tree | f59b6fd4cb8420052b3783ddf460c2932b529c67 /Lib/test/test_sys_settrace.py | |
| parent | 64141382ecbad665d5738ff26d15505f3427c724 (diff) | |
| download | cpython-git-5979e81a212949c62c2490167c9137d233d7de64.tar.gz | |
bpo-43933: Set frame.f_lineno during call to __exit__ (GH-25719)
* Set line number of __exit__ call in a with statement to be that of the with keyword.
Diffstat (limited to 'Lib/test/test_sys_settrace.py')
| -rw-r--r-- | Lib/test/test_sys_settrace.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_sys_settrace.py b/Lib/test/test_sys_settrace.py index 49e8928995..40dd92ca8e 100644 --- a/Lib/test/test_sys_settrace.py +++ b/Lib/test/test_sys_settrace.py @@ -936,10 +936,11 @@ class TraceTestCase(unittest.TestCase): (-4, 'line'), (-4, 'return'), (2, 'line'), + (1, 'line'), (-3, 'call'), (-2, 'line'), (-2, 'return'), - (2, 'return')]) + (1, 'return')]) def test_if_false_in_try_except(self): |
