aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_repl.py
diff options
context:
space:
mode:
authorWilliam Wen <william.wen42@gmail.com>2023-12-01 14:18:16 -0800
committerGitHub <noreply@github.com>2023-12-01 22:18:16 +0000
commit939fc6d6eab9b7ea8c244d513610dbdd556503a7 (patch)
tree37b5e5e7524e8ce098647566af5d7a3fc7ce30ea /Lib/test/test_repl.py
parent5c5022b8625e34f0035ad5a23bc4c2f16649d134 (diff)
downloadcpython-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.py3
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',
' ~~^~~',