File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -578,13 +578,18 @@ def test_simple_completion(self):
578
578
self .assertEqual (output , "os.getenv" )
579
579
580
580
def test_completion_with_many_options (self ):
581
- events = code_to_events ("os.\t \t O_AS\t \n " )
581
+ # Test with something that initially displays many options
582
+ # and then complete from one of them. The first time tab is
583
+ # pressed, the options are displayed (which corresponds to
584
+ # when the repl shows [ not unique ]) and the second completes
585
+ # from one of them.
586
+ events = code_to_events ("os.\t \t O_AP\t \n " )
582
587
583
588
namespace = {"os" : os }
584
589
reader = self .prepare_reader (events , namespace )
585
590
586
591
output = multiline_input (reader , namespace )
587
- self .assertEqual (output , "os.O_ASYNC " )
592
+ self .assertEqual (output , "os.O_APPEND " )
588
593
589
594
def test_empty_namespace_completion (self ):
590
595
events = code_to_events ("os.geten\t \n " )
You can’t perform that action at this time.
0 commit comments