mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-122546: Relax SyntaxError check when raising errors on the new REPL (#123233)
This commit is contained in:
parent
297f2e093e
commit
4c3f0cbeae
2 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue