diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-08-23 00:32:11 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-23 00:32:11 (GMT) |
| commit | fda8aec625d5be02ebb1c67fad89db85fa1f4f12 (patch) | |
| tree | e5a30b620e50803720d18ccad4c4f68145acaf35 /Lib/test/test_pyrepl/test_pyrepl.py | |
| parent | 30eee22d3f5b637d2a9536c2d7bf448f6ac14118 (diff) | |
| download | cpython-fda8aec625d5be02ebb1c67fad89db85fa1f4f12.zip cpython-fda8aec625d5be02ebb1c67fad89db85fa1f4f12.tar.gz cpython-fda8aec625d5be02ebb1c67fad89db85fa1f4f12.tar.bz2 | |
[3.13] gh-122546: Relax SyntaxError check when raising errors on the new REPL (GH-123233) (#123247)
gh-122546: Relax SyntaxError check when raising errors on the new REPL (GH-123233)
(cherry picked from commit 4c3f0cbeaec0d49212d305618743fabb0e74a696)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
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 a433212..9944cd0 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) def run_repl( self, |
