diff options
author | William Wen <william.wen42@gmail.com> | 2023-12-01 14:18:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 22:18:16 +0000 |
commit | 939fc6d6eab9b7ea8c244d513610dbdd556503a7 (patch) | |
tree | 37b5e5e7524e8ce098647566af5d7a3fc7ce30ea /Lib/test/test_repl.py | |
parent | 5c5022b8625e34f0035ad5a23bc4c2f16649d134 (diff) | |
download | cpython-939fc6d6eab9b7ea8c244d513610dbdd556503a7.tar.gz cpython-939fc6d6eab9b7ea8c244d513610dbdd556503a7.zip |
gh-106922: Support multi-line error locations in traceback (attempt 2) (#112097)
Diffstat (limited to 'Lib/test/test_repl.py')
-rw-r--r-- | Lib/test/test_repl.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_repl.py b/Lib/test/test_repl.py index 7533376e015..a28d1595f44 100644 --- a/Lib/test/test_repl.py +++ b/Lib/test/test_repl.py @@ -161,10 +161,11 @@ class TestInteractiveInterpreter(unittest.TestCase): output = kill_python(p) self.assertEqual(p.returncode, 0) - traceback_lines = output.splitlines()[-7:-1] + traceback_lines = output.splitlines()[-8:-1] expected_lines = [ ' File "<stdin>", line 1, in <module>', ' foo(0)', + ' ~~~^^^', ' File "<stdin>", line 2, in foo', ' 1 / x', ' ~~^~~', |