Skip to content

Commit 0e532f6

Browse files
authored
Merge pull request #2 from Axelrod-Python/minor-assertion-tweak
Move if statement in test to assert.
2 parents 85806d5 + 1ab9d37 commit 0e532f6

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
@@ -34,9 +34,7 @@ def test_original_strategy(
3434
action = player.original_strategy(
3535
their_last_move, move_number, my_score, their_score, 0,
3636
my_last_move)
37-
if action not in (0, 1):
38-
print(f'{strategy} returned {action}')
39-
assert action in (0, 1)
37+
assert action in (0, 1), print(f'{strategy} returned {action}')
4038

4139

4240
def test_matches():

0 commit comments

Comments
 (0)