Skip to content

Commit 1004941

Browse files
committed
Add a newline to user_input for portability to Python 3.12
1 parent 71c4a5f commit 1004941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ 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('afterwards')\n"
300300
p = spawn_repl("-m", "asyncio")
301301
p.stdin.write(user_input)
302302
output = kill_python(p)

0 commit comments

Comments
 (0)