We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_right_arrow_end_of_line
1 parent 62b3577 commit 50188d3Copy full SHA for 50188d3
Lib/test/test_pyrepl/test_pyrepl.py
@@ -238,13 +238,15 @@ def test_right_arrow_end_of_line(self):
238
events = itertools.chain(
239
code_to_events("11+11"),
240
[
241
+ # Go left first to avoid end of buffer error.
242
+ Event(evt="key", data="left", raw=bytearray(b"\x1bOD")),
243
Event(evt="key", data="right", raw=bytearray(b"\x1bOC")),
244
],
245
)
246
247
reader, console = handle_all_events(events)
248
self.assertEqual(reader.cxy, (5, 0))
- console.move_cursor.assert_called_once_with(5, 0)
249
+ console.move_cursor.assert_called_with(5, 0)
250
251
def test_cursor_position_simple_character(self):
252
events = itertools.chain(code_to_events("k"))
0 commit comments