Skip to content

Commit c0b630f

Browse files
committed
Fix test_champion_v_alternator
1 parent dc7fe63 commit c0b630f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/axelrod_fortran/player.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from ctypes import byref, c_float, c_int, POINTER
2-
import random
32
import warnings
43

54
import axelrod as axl

tests/test_player.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ctypes import c_int, c_float, POINTER, CDLL
1+
from ctypes import c_int, c_float, POINTER
22
import itertools
33

44
import pytest
@@ -139,14 +139,16 @@ def test_implemented_strategies():
139139

140140
def test_champion_v_alternator():
141141
"""
142-
Specific regression test for a bug.
142+
Specific regression test for a bug. See:
143+
https://github.com/Axelrod-Python/axelrod-fortran/issues/62
143144
"""
144145
player = Player("k61r")
145146
opponent = Alternator()
146-
seed = 0
147+
seed = 3
147148
match = Match((player, opponent), seed=seed)
148149
interactions = match.play()
149150
assert interactions[25:30] == [(C, D), (C, C), (C, D), (D, C), (C, D)]
151+
match = Match((player, opponent), seed=seed)
150152
assert interactions == match.play()
151153

152154

0 commit comments

Comments
 (0)