Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test_right_arrow_end_of_line test
  • Loading branch information
johnslavik committed Apr 7, 2026
commit 50188d301912e1ef08bc90106c7239a8242fd32f
4 changes: 3 additions & 1 deletion Lib/test/test_pyrepl/test_pyrepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,15 @@ def test_right_arrow_end_of_line(self):
events = itertools.chain(
code_to_events("11+11"),
[
# Go left first to avoid end of buffer error.
Event(evt="key", data="left", raw=bytearray(b"\x1bOD")),
Event(evt="key", data="right", raw=bytearray(b"\x1bOC")),
],
)

reader, console = handle_all_events(events)
self.assertEqual(reader.cxy, (5, 0))
console.move_cursor.assert_called_once_with(5, 0)
console.move_cursor.assert_called_with(5, 0)

def test_cursor_position_simple_character(self):
events = itertools.chain(code_to_events("k"))
Expand Down
Loading