From b648e7a11f5a378c07fa241d7d4a7c47c24f4ec4 Mon Sep 17 00:00:00 2001 From: FullteaR Date: Mon, 6 Jan 2025 01:56:17 +0900 Subject: [PATCH] add broken tests --- Lib/test/test_pyrepl/test_reader.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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") +