Skip to content

Commit 23a7cf4

Browse files
committed
Update two tests following review comments.
1 parent 11a6f1c commit 23a7cf4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

axelrod/tests/unit/test_match.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ def test_sample_length(self):
359359
(2, 0.6, 1),
360360
(3, 0.4, 2),
361361
]:
362-
rg = RandomGenerator(seed)
363-
r = rg.random()
362+
rng = RandomGenerator(seed)
363+
r = rng.random()
364364
self.assertEqual(axl.match.sample_length(prob_end, r), expected_length)
365365

366366
def test_sample_with_0_prob(self):

axelrod/tests/unit/test_tournament.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,10 @@ def test_seeding_equality(self, seed):
757757
repetitions=100,
758758
seed=seed
759759
)
760-
results1 = tournament1.play(processes=2)
761-
results2 = tournament2.play(processes=2)
762-
self.assertEqual(results1.ranked_names, results2.ranked_names)
760+
for _ in range(4):
761+
results1 = tournament1.play(processes=2)
762+
results2 = tournament2.play(processes=2)
763+
self.assertEqual(results1.ranked_names, results2.ranked_names)
763764

764765
def test_seeding_inequality(self):
765766
players = [axl.Random(0.4), axl.Random(0.6)]

0 commit comments

Comments
 (0)