File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ def test_bad_board():
5555
5656 for bad in ['ABC' , '...XXX' , 'XXXOOOXX' ]:
5757 rv , out = getstatusoutput (f'{ prg } --board { bad } ' )
58- print (out )
5958 assert rv != 0
6059 assert re .search (expected .format (bad ), out )
6160
@@ -65,9 +64,7 @@ def test_bad_player():
6564 """dies on bad player"""
6665
6766 bad = random .choice ([c for c in string .ascii_uppercase if c not in 'XO' ])
68- print (f'{ prg } -p { bad } ' )
6967 rv , out = getstatusoutput (f'{ prg } -p { bad } ' )
70- print (out )
7168 assert rv != 0
7269 expected = f"-p/--player: invalid choice: '{ bad } '"
7370 assert re .search (expected , out )
@@ -119,7 +116,6 @@ def test_good_board_01():
119116""" .strip ()
120117
121118 rv , out = getstatusoutput (f'{ prg } -b .........' )
122- print (f'rv = "{ rv } "' )
123119 assert rv == 0
124120 assert out .strip () == board
125121
@@ -226,6 +222,5 @@ def test_losing():
226222 losing_board = list ('XXOO.....' )
227223 for i in range (10 ):
228224 random .shuffle (losing_board )
229- print (f'{ prg } { " " .join (losing_board )} ' )
230225 out = getoutput (f'{ prg } -b { "" .join (losing_board )} ' ).splitlines ()
231226 assert out [- 1 ].strip () == 'No winner.'
You can’t perform that action at this time.
0 commit comments