Skip to content

Commit 008656c

Browse files
drvinceknightAdamPohl
authored andcommitted
Modify test function to set all seeds.
1 parent 9c397ab commit 008656c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

axelrod/tests/unit/test_player.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
import copy
32
import inspect
43
import random
54
import unittest
@@ -89,7 +88,7 @@ def test_responses(test_class, P1, P2, history_1, history_2, responses,
8988
"""
9089

9190
if random_seed:
92-
random.seed(random_seed)
91+
axelrod.seed(random_seed)
9392
# Force the histories, In case either history is impossible or if some
9493
# internal state needs to be set, actually submit to moves to the strategy
9594
# method. Still need to append history manually.

0 commit comments

Comments
 (0)