@@ -153,12 +153,13 @@ def test_build_matches_different_length(self, prob_end):
153
153
@given (prob_end = floats (min_value = 0 , max_value = 1 ))
154
154
def test_sample_length (self , prob_end ):
155
155
rr = axelrod .ProbEndRoundRobinMatches (
156
- self .players , prob_end , test_game , test_repetitions )
157
- self .assertGreaterEqual (rr .sample_length (prob_end ), 1 )
156
+ self .players , prob_end , test_game , test_repetitions ,
157
+ )
158
+ self .assertGreaterEqual (rr .sample_length (), 1 )
158
159
try :
159
- self .assertIsInstance (rr .sample_length (prob_end ), int )
160
+ self .assertIsInstance (rr .sample_length (), int )
160
161
except AssertionError :
161
- self .assertEqual (rr .sample_length (prob_end ), float ("inf" ))
162
+ self .assertEqual (rr .sample_length (), float ("inf" ))
162
163
163
164
@given (prob_end = floats (min_value = .1 , max_value = 1 ))
164
165
def test_build_single_match_params (self , prob_end ):
@@ -300,11 +301,11 @@ def test_sample_length(self, prob_end):
300
301
noise = 0
301
302
pesp = axelrod .ProbEndSpatialMatches (
302
303
self .players , prob_end , test_game , test_repetitions , noise , edges )
303
- self .assertGreaterEqual (pesp .sample_length (prob_end ), 1 )
304
+ self .assertGreaterEqual (pesp .sample_length (), 1 )
304
305
try :
305
- self .assertIsInstance (pesp .sample_length (prob_end ), int )
306
+ self .assertIsInstance (pesp .sample_length (), int )
306
307
except AssertionError :
307
- self .assertEqual (pesp .sample_length (prob_end ), float ("inf" ))
308
+ self .assertEqual (pesp .sample_length (), float ("inf" ))
308
309
309
310
@given (prob_end = floats (min_value = 0.005 , max_value = 0.01 ))
310
311
def test_build_matches_different_length (self , prob_end ):
0 commit comments