]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-117174: Adapt `test_multiple_statements_fail_early` to new REPL behavior...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 28 Mar 2025 16:51:04 +0000 (17:51 +0100)
committerGitHub <noreply@github.com>
Fri, 28 Mar 2025 16:51:04 +0000 (16:51 +0000)
gh-117174: Adapt `test_multiple_statements_fail_early` to new REPL behavior (follow-up gh-131065) (GH-131836)

Adapt test to new REPL behavior (follow-up gh-117174)
(cherry picked from commit a6cf8275f8b477d34c86c8f89a3ca32e78084add)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Lib/test/test_pyrepl/test_interact.py

index 2651cf7d32d79da2e1ee3f11b2d937ce55db815e..2041a35c8a472bfd3c5178dde96137b60c4874ce 100644 (file)
@@ -58,7 +58,7 @@ class TestSimpleInteract(unittest.TestCase):
         console = InteractiveColoredConsole()
         code = dedent("""\
         raise Exception('foobar')
-        print('spam&eggs')
+        print('spam', 'eggs', sep='&')
         """)
         f = io.StringIO()
         with contextlib.redirect_stderr(f):