Skip to content

Commit f1e76ce

Browse files
committed
Remove test
1 parent ce0641d commit f1e76ce

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Lib/test/test_pyrepl/test_pyrepl.py

Lines 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)