mirror of https://github.com/python/cpython.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 a6cf8275f8
)
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
This commit is contained in:
parent
de8bc17c33
commit
3e45b1fece
|
@ -58,7 +58,7 @@ def test_multiple_statements_fail_early(self):
|
||||||
console = InteractiveColoredConsole()
|
console = InteractiveColoredConsole()
|
||||||
code = dedent("""\
|
code = dedent("""\
|
||||||
raise Exception('foobar')
|
raise Exception('foobar')
|
||||||
print('spam&eggs')
|
print('spam', 'eggs', sep='&')
|
||||||
""")
|
""")
|
||||||
f = io.StringIO()
|
f = io.StringIO()
|
||||||
with contextlib.redirect_stderr(f):
|
with contextlib.redirect_stderr(f):
|
||||||
|
|
Loading…
Reference in New Issue