@@ -79,6 +79,10 @@ def do_mumble(self, opts, arg):
7979 output .append (random .choice (self .MUMBLE_LAST ))
8080 self .poutput (' ' .join (output ))
8181
82+ def do_nothing (self , statement ):
83+ """Do nothing and output nothing"""
84+ pass
85+
8286
8387def test_commands_at_invocation ():
8488 testargs = ["prog" , "say hello" , "say Gracie" , "quit" ]
@@ -98,6 +102,8 @@ def test_commands_at_invocation():
98102 ('from_cmdloop.txt' , True ),
99103 ('multiline_no_regex.txt' , False ),
100104 ('multiline_regex.txt' , False ),
105+ ('no_output.txt' , False ),
106+ ('no_output_last.txt' , False ),
101107 ('regex_set.txt' , False ),
102108 ('singleslash.txt' , False ),
103109 ('slashes_escaped.txt' , False ),
@@ -125,7 +131,7 @@ def test_transcript(request, capsys, filename, feedback_to_output):
125131 # Check for the unittest "OK" condition for the 1 test which ran
126132 expected_start = ".\n ----------------------------------------------------------------------\n Ran 1 test in"
127133 expected_end = "s\n \n OK\n "
128- out , err = capsys .readouterr ()
134+ _ , err = capsys .readouterr ()
129135 assert err .startswith (expected_start )
130136 assert err .endswith (expected_end )
131137
0 commit comments