From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 28 Mar 2025 16:51:04 +0000 (+0100) Subject: [3.13] gh-117174: Adapt `test_multiple_statements_fail_early` to new REPL behavior... X-Git-Tag: v3.13.3~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e45b1fecea28667257cbfef8ac49bd803f8a49c;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-117174: Adapt `test_multiple_statements_fail_early` to new REPL behavior (follow-up gh-131065) (GH-131836) (#131841) 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 --- diff --git a/Lib/test/test_pyrepl/test_interact.py b/Lib/test/test_pyrepl/test_interact.py index 2651cf7d32d7..2041a35c8a47 100644 --- a/Lib/test/test_pyrepl/test_interact.py +++ b/Lib/test/test_pyrepl/test_interact.py @@ -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):