Skip to content

Commit

Permalink
Implement a minimal prob end for property test
Browse files Browse the repository at this point in the history
This should hopefully stop sporadic failures on travis (due to
timeouts) - mentioned on #935
  • Loading branch information
drvinceknight committed Mar 27, 2017
1 parent 779b6f1 commit 72b61b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion axelrod/tests/unit/test_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ def test_decorator_with_given_strategies(self, tournament):
self.assertIn(str(p), basic_player_names)

@given(tournament=prob_end_spatial_tournaments(strategies=stochastic_strategies,
max_size=3))
max_size=3,
min_prob_end=0.2))
@settings(max_examples=10, timeout=0)
def test_decorator_with_stochastic_strategies(self, tournament):
self.assertIsInstance(tournament, axelrod.ProbEndSpatialTournament)
Expand Down

0 comments on commit 72b61b8

Please sign in to comment.