Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c98b06 commit 4192ce1Copy full SHA for 4192ce1
1 file changed
Lib/test/test_repl.py
@@ -296,12 +296,12 @@ def f():
296
297
class TestAsyncioREPL(unittest.TestCase):
298
def test_multiple_statements_fail_early(self):
299
- user_input = "1 / 0; print('afterwards')"
+ user_input = "1 / 0; print(f'afterwards: {1+1}')"
300
p = spawn_repl("-m", "asyncio")
301
p.stdin.write(user_input)
302
output = kill_python(p)
303
self.assertIn("ZeroDivisionError", output)
304
- self.assertNotIn("afterwards", output)
+ self.assertNotIn("afterwards: 2", output)
305
306
def test_toplevel_contextvars_sync(self):
307
user_input = dedent("""\
0 commit comments