Skip to content

Commit 517d855

Browse files
committed
Remove the option to not pass a seed.
This isn't used.
1 parent 3765d1e commit 517d855

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

axelrod/tests/strategies/test_player.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -593,19 +593,16 @@ def test_four_vector(test_class, expected_dictionary):
593593
player1._four_vector[key], expected_dictionary[key])
594594

595595

596-
def test_memory(player, opponent, memory_length, seed=None, turns=10):
596+
def test_memory(player, opponent, memory_length, seed=0, turns=10):
597597
"""
598598
Checks if a player reacts to the plays of an opponent in the same way if
599599
only the given amount of memory is used.
600600
"""
601-
if seed is not None:
602-
axelrod.seed(seed)
603-
601+
axelrod.seed(seed)
604602
match = axelrod.Match((player, opponent), turns=turns)
605603
expected_results = match.play()
606604

607-
if seed is not None:
608-
axelrod.seed(seed)
605+
axelrod.seed(seed)
609606
player.reset()
610607
opponent.reset()
611608

0 commit comments

Comments
 (0)