]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117174: Adapt `test_multiple_statements_fail_early` to new REPL behavior (follow...
authorBartosz Sławecki <bartosz@ilikepython.com>
Fri, 28 Mar 2025 14:09:31 +0000 (15:09 +0100)
committerGitHub <noreply@github.com>
Fri, 28 Mar 2025 14:09:31 +0000 (15:09 +0100)
Adapt test to new REPL behavior (follow-up gh-117174)

Lib/test/test_pyrepl/test_interact.py

index c3204832a6a93a0b89db1dd16429057602f7bc76..af5d4d0e67632a19ad8dec0387027ea448b5dcb2 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):