@@ -77,6 +77,10 @@ def do_mumble(self, opts, arg):
7777 output .append (random .choice (self .MUMBLE_LAST ))
7878 self .poutput (' ' .join (output ))
7979
80+ def do_nothing (self , statement ):
81+ """Do nothing and output nothing"""
82+ pass
83+
8084
8185def test_commands_at_invocation ():
8286 testargs = ["prog" , "say hello" , "say Gracie" , "quit" ]
@@ -96,6 +100,7 @@ def test_commands_at_invocation():
96100 ('from_cmdloop.txt' , True ),
97101 ('multiline_no_regex.txt' , False ),
98102 ('multiline_regex.txt' , False ),
103+ ('no_output.txt' , False ),
99104 ('regex_set.txt' , False ),
100105 ('singleslash.txt' , False ),
101106 ('slashes_escaped.txt' , False ),
@@ -123,7 +128,7 @@ def test_transcript(request, capsys, filename, feedback_to_output):
123128 # Check for the unittest "OK" condition for the 1 test which ran
124129 expected_start = ".\n ----------------------------------------------------------------------\n Ran 1 test in"
125130 expected_end = "s\n \n OK\n "
126- out , err = capsys .readouterr ()
131+ _ , err = capsys .readouterr ()
127132 assert err .startswith (expected_start )
128133 assert err .endswith (expected_end )
129134
0 commit comments