Skip to content

Commit

Permalink
add broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FullteaR committed Jan 5, 2025
1 parent 2822d74 commit b648e7a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Lib/test/test_pyrepl/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit b648e7a

Please sign in to comment.