Skip to content

Commit c084075

Browse files
committed
Increase mutation probability for test
1 parent c7e6b61 commit c084075

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

axelrod/tests/strategies/test_evolvable_player.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ def test_mutate_variations(self):
9393
return
9494
seed(100)
9595
variants_produced = False
96-
for _ in range(2, 400):
96+
for _ in range(2, 200):
9797
try:
98-
player = self.player(mutation_probability=1)
98+
# Note we've set the mutation_probability artificially high to trigger low probability lines quicker.
99+
player = self.player(mutation_probability=100)
99100
except TypeError:
100101
# Not every subclass accepts a mutation_probability.
101102
player = self.player()

0 commit comments

Comments
 (0)