From 4c3f0cbeaec0d49212d305618743fabb0e74a696 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Fri, 23 Aug 2024 02:25:33 +0300 Subject: gh-122546: Relax SyntaxError check when raising errors on the new REPL (#123233) --- Lib/test/test_pyrepl/test_pyrepl.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/test/test_pyrepl/test_pyrepl.py') diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py index 77984975922..b03cf136ec5 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("", output) + commands = " b\nexit()\n" + output, exit_code = self.run_repl(commands, env=env) + self.assertIn("IndentationError: unexpected indent", output) + self.assertIn("", output) @force_not_colorized def test_proper_tracebacklimit(self): -- cgit v1.2.3