Skip to content

Commit e460602

Browse files
[3.13] gh-117174: Adapt test_multiple_statements_fail_early now that we have always source (GH-131065) (#131850)
gh-117174: Adapt test_multiple_statements_fail_early now that we have always source (GH-131065) (cherry picked from commit 4192ce1) Co-authored-by: Pablo Galindo Salgado <[email protected]>
1 parent 924a6ce commit e460602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,12 @@ def f():
296296

297297
class TestAsyncioREPL(unittest.TestCase):
298298
def test_multiple_statements_fail_early(self):
299-
user_input = "1 / 0; print('afterwards')"
299+
user_input = "1 / 0; print(f'afterwards: {1+1}')"
300300
p = spawn_repl("-m", "asyncio")
301301
p.stdin.write(user_input)
302302
output = kill_python(p)
303303
self.assertIn("ZeroDivisionError", output)
304-
self.assertNotIn("afterwards", output)
304+
self.assertNotIn("afterwards: 2", output)
305305

306306
def test_toplevel_contextvars_sync(self):
307307
user_input = dedent("""\

0 commit comments

Comments
 (0)