Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f95e9c3

Browse filesBrowse files
committed
modify the cursor movement commands in test_reader to use \x1bOD
1 parent a1e2e38 commit f95e9c3
Copy full SHA for f95e9c3

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎Lib/test/test_pyrepl/test_reader.py

Copy file name to clipboardExpand all lines: Lib/test/test_pyrepl/test_reader.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def test_control_w_delete_word(self):
384384
with self.subTest(text=text, before_pos=before_pos):
385385
events = itertools.chain(
386386
code_to_events(text),
387-
[Event(evt="key", data="left", raw=bytearray(b"\x1b[D"))] * (len(text) - before_pos), # Move cursor to specified position
387+
[Event(evt="key", data="left", raw=bytearray(b"\x1bOD"))] * (len(text) - before_pos), # Move cursor to specified position
388388
[
389389
Event(evt="key", data="\x17", raw=bytearray(b"\x17")), # Control-W
390390
],
@@ -407,7 +407,7 @@ def test_control_k_delete_to_eol(self):
407407
with self.subTest(text=text, pos=pos):
408408
events = itertools.chain(
409409
code_to_events(text),
410-
[Event(evt="key", data="left", raw=bytearray(b"\x1b[D"))] * (len(text) - pos), # Move cursor to specified position
410+
[Event(evt="key", data="left", raw=bytearray(b"\x1bOD"))] * (len(text) - pos), # Move cursor to specified position
411411
[
412412
Event(evt="key", data="\x0b", raw=bytearray(b"\x0b")), # Control-K
413413
],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.