Skip to content

Commit bd4700a

Browse files
committed
Move if statement in test to assert.
This works in a normal assertion. I haven't run it, possibly something breaks in a test?
1 parent ce5db1f commit bd4700a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_player.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,4 @@ def test_original_strategy(
3030
action = player.original_strategy(
3131
their_last_move, move_number, my_score, their_score, 0,
3232
my_last_move)
33-
if action not in (0, 1):
34-
print(f'{strategy} returned {action}')
35-
assert action in (0, 1)
33+
assert action in (0, 1), print(f'{strategy} returned {action}')

0 commit comments

Comments
 (0)