Skip to content

Commit da921c1

Browse files
committed
Revert "WIP: Add test"
This reverts commit 9e2170c.
1 parent 9e2170c commit da921c1

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

Lib/test/test_pyrepl.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def test_global_namespace_completion(self):
607607
output = multiline_input(reader, namespace)
608608
self.assertEqual(output, "python")
609609

610-
def test_up_down_arrows_with_completion_menu(self):
610+
def test_updown_arrow_with_completion_menu(self):
611611
"""Up arrow in the middle of unfinished tab completion when the menu is displayed
612612
should work and trigger going back in history. Down arrow should subsequently
613613
get us back to the incomplete command."""
@@ -633,29 +633,6 @@ def test_up_down_arrows_with_completion_menu(self):
633633
self.assertEqual(output, "os.")
634634

635635

636-
def test_right_down_arrows_with_completion_menu(self):
637-
"""Right / Down arrows while the tab completion menu is displayed
638-
should do nothing"""
639-
code = "os.\t\t"
640-
namespace = {"os": os}
641-
642-
events = itertools.chain(
643-
code_to_events(code),
644-
[
645-
Event(evt="key", data="down", raw=bytearray(b"\x1bOB")),
646-
Event(evt="key", data="right", raw=bytearray(b"\x1bOC")),
647-
],
648-
code_to_events("\n")
649-
)
650-
reader = self.prepare_reader(events, namespace=namespace)
651-
output = multiline_input(reader, namespace)
652-
self.assertEqual(output, "os.")
653-
# When we press right and/or down arrow while
654-
# the completions menu is displayed,
655-
# the cursor should stay where it was on the line.
656-
self.assertEqual(reader.cmpltn_menu_vis, 1)
657-
self.assertEqual(reader.cxy, (6, 0))
658-
659636
@patch("_pyrepl.curses.tigetstr", lambda x: b"")
660637
class TestUnivEventQueue(TestCase):
661638
def setUp(self):

0 commit comments

Comments
 (0)