https://github.com/python/cpython/commit/4192ce17ba643e5b0bc9d2182a429002e4cc9dfe
commit: 4192ce17ba643e5b0bc9d2182a429002e4cc9dfe
branch: main
author: Pablo Galindo Salgado <[email protected]>
committer: pablogsal <[email protected]>
date: 2025-03-10T23:10:53Z
summary:
gh-117174: Adapt test_multiple_statements_fail_early now that we have always
source (#131065)
files:
M Lib/test/test_repl.py
diff --git a/Lib/test/test_repl.py b/Lib/test/test_repl.py
index 611fc89e57a984..f68b0c1ba8642f 100644
--- a/Lib/test/test_repl.py
+++ b/Lib/test/test_repl.py
@@ -296,12 +296,12 @@ def f():
class TestAsyncioREPL(unittest.TestCase):
def test_multiple_statements_fail_early(self):
- user_input = "1 / 0; print('afterwards')"
+ user_input = "1 / 0; print(f'afterwards: {1+1}')"
p = spawn_repl("-m", "asyncio")
p.stdin.write(user_input)
output = kill_python(p)
self.assertIn("ZeroDivisionError", output)
- self.assertNotIn("afterwards", output)
+ self.assertNotIn("afterwards: 2", output)
def test_toplevel_contextvars_sync(self):
user_input = dedent("""\
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]