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 f1e76ce

Browse filesBrowse files
committed
Remove test
1 parent ce0641d commit f1e76ce
Copy full SHA for f1e76ce

File tree

1 file changed

+0
-26
lines changed
Filter options

1 file changed

+0
-26
lines changed

‎Lib/test/test_pyrepl/test_pyrepl.py

Copy file name to clipboardExpand all lines: Lib/test/test_pyrepl/test_pyrepl.py
-26Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -702,33 +702,7 @@ def test_up_down_arrow_with_completion_menu(self):
702702
# so we should end up where we were when we initiated tab completion.
703703
output = multiline_input(reader, namespace)
704704
self.assertEqual(output, "os.")
705-
# TODO: The menu should be visible, but currently isn't?
706-
# self.assertEqual(reader.cmpltn_menu_visible, True)
707-
708-
# TODO: This test doesn't seem to work as intended.
709-
def test_right_down_arrows_with_completion_menu(self):
710-
"""Right / Down arrows while the tab completion menu is displayed
711-
should do nothing"""
712-
code = "os.\t\t"
713-
namespace = {"os": os}
714705

715-
events = itertools.chain(
716-
code_to_events(code),
717-
[
718-
Event(evt="key", data="down", raw=bytearray(b"\x1bOB")),
719-
Event(evt="key", data="right", raw=bytearray(b"\x1bOC")),
720-
],
721-
code_to_events("\n")
722-
)
723-
reader = self.prepare_reader(events, namespace=namespace)
724-
output = multiline_input(reader, namespace)
725-
self.assertEqual(output, "os.")
726-
# When we press right and/or down arrow while
727-
# the completions menu is displayed,
728-
# the cursor should stay where it was on the line.
729-
self.assertEqual(reader.cxy, (6, 0))
730-
# TODO: The menu should be visible, but currently isn't?
731-
# self.assertEqual(reader.cmpltn_menu_visible, True)
732706

733707
@patch("_pyrepl.readline._ReadlineWrapper.get_reader")
734708
@patch("sys.stderr", new_callable=io.StringIO)

0 commit comments

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