diff options
author | Sergey B Kirpichev <skirpichev@gmail.com> | 2024-08-22 23:25:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-22 23:25:33 (GMT) |
commit | 4c3f0cbeaec0d49212d305618743fabb0e74a696 (patch) | |
tree | 2baf6230407365e6c75f8fb5e9864a1d17431d33 /Lib/test/test_pyrepl/test_pyrepl.py | |
parent | 297f2e093ec95800ae2184330b8408c875523467 (diff) | |
download | cpython-4c3f0cbeaec0d49212d305618743fabb0e74a696.zip cpython-4c3f0cbeaec0d49212d305618743fabb0e74a696.tar.gz cpython-4c3f0cbeaec0d49212d305618743fabb0e74a696.tar.bz2 |
gh-122546: Relax SyntaxError check when raising errors on the new REPL (#123233)
Diffstat (limited to 'Lib/test/test_pyrepl/test_pyrepl.py')
-rw-r--r-- | Lib/test/test_pyrepl/test_pyrepl.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py index 7798497..b03cf13 100644 --- a/Lib/test/test_pyrepl/test_pyrepl.py +++ b/Lib/test/test_pyrepl/test_pyrepl.py @@ -1109,6 +1109,10 @@ class TestMain(TestCase): self.skipTest("pyrepl not available") self.assertIn("SyntaxError: invalid syntax", output) self.assertIn("<python-input-0>", output) + commands = " b\nexit()\n" + output, exit_code = self.run_repl(commands, env=env) + self.assertIn("IndentationError: unexpected indent", output) + self.assertIn("<python-input-0>", output) @force_not_colorized def test_proper_tracebacklimit(self): |