Skip to content

Commit c283053

Browse files
committed
Tweak evolvable player tests
1 parent 174352b commit c283053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

axelrod/tests/strategies/test_evolvable_player.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ def test_mutate_variations(self):
8383
if self.init_parameters:
8484
return
8585
seed(0)
86-
player = self.player()
8786
variants_produced = False
8887
for seed_ in range(2, 200):
8988
seed(seed_)
89+
player = self.player()
9090
mutant = player.clone().mutate()
9191
if player != mutant:
9292
variants_produced = True
@@ -117,7 +117,7 @@ def test_crossover(self):
117117
self.assertFalse(True)
118118

119119
def test_crossover_mismatch(self):
120-
other = EvolvableTestOpponent()
120+
other = axl.Cooperator()
121121
self.assertRaises(TypeError, self.player_class.crossover, other=other)
122122

123123
def test_serialization(self):

0 commit comments

Comments
 (0)