Skip to content

Commit aa3a2c2

Browse files
committed
Suppress too slow healthcheck.
1 parent 6dd4b43 commit aa3a2c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

axelrod/tests/unit/test_strategy_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import unittest
44

5-
from hypothesis import given, settings
5+
from hypothesis import given, settings, HealthCheck
66
from hypothesis.strategies import integers, lists, sampled_from
77

88
import axelrod as axl
@@ -20,7 +20,7 @@ class TestDetectCycle(unittest.TestCase):
2020
cycle=lists(sampled_from([C, D]), min_size=2, max_size=10),
2121
period=integers(min_value=3, max_value=10),
2222
)
23-
@settings(max_examples=5)
23+
@settings(max_examples=5, suppress_health_check=(HealthCheck.too_slow,))
2424
def test_finds_cycle(self, cycle, period):
2525
history = cycle * period
2626
detected = detect_cycle(history)

0 commit comments

Comments
 (0)