Skip to content

Commit 8cc1a14

Browse files
committed
removed prints
1 parent daf5a39 commit 8cc1a14

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

21_tictactoe/test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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.'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy