diff --git a/Lib/test/test_pyrepl/test_reader.py b/Lib/test/test_pyrepl/test_reader.py index d02ee34772ade7..5ef31a25147032 100644 --- a/Lib/test/test_pyrepl/test_reader.py +++ b/Lib/test/test_pyrepl/test_reader.py @@ -313,5 +313,14 @@ def test_key_press_on_tab_press_once(self): self.assert_screen_equals(reader, f"{code}a") - def test_tmp(self): - self.assertListEqual([1], [2]) + def test_input_func_with_empty_prompt(self): + events = itertools.chain( + code_to_events("input()"), + [ + Event(evt="key", data='\n', raw=bytearray(b'\n')), + ], + code_to_events("abcde") + ) + reader, _ = handle_all_events(events) + self.assert_screen_equals(reader, 9 * "a") +