@@ -702,33 +702,7 @@ def test_up_down_arrow_with_completion_menu(self):
702
702
# so we should end up where we were when we initiated tab completion.
703
703
output = multiline_input (reader , namespace )
704
704
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 }
714
705
715
- events = itertools .chain (
716
- code_to_events (code ),
717
- [
718
- Event (evt = "key" , data = "down" , raw = bytearray (b"\x1b OB" )),
719
- Event (evt = "key" , data = "right" , raw = bytearray (b"\x1b OC" )),
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)
732
706
733
707
@patch ("_pyrepl.readline._ReadlineWrapper.get_reader" )
734
708
@patch ("sys.stderr" , new_callable = io .StringIO )
0 commit comments