Skip to content

Commit 401acaf

Browse files
committed
Fix test
1 parent 299dd7e commit 401acaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_player.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,12 @@ def test_warning_for_self_interaction(recwarn):
156156
Test that a warning is given for a self interaction.
157157
"""
158158
player = Player("k42r")
159-
opponent = Player("k42r")
160159
opponent = player
161160

162161
match = Match((player, opponent))
163162

164163
interactions = match.play()
165-
assert len(recwarn) == 0
164+
assert len(recwarn) == 1
166165

167166

168167
def test_no_warning_for_normal_interaction(recwarn):

0 commit comments

Comments
 (0)