Skip to content

Commit e4e612a

Browse files
committed
suppress filter_too_much for dfa test
1 parent f9a28f0 commit e4e612a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

hypothesis-python/tests/conjecture/test_dfa.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@
1414

1515
import pytest
1616

17-
from hypothesis import assume, example, given, note, reject, settings, strategies as st
17+
from hypothesis import (
18+
HealthCheck,
19+
assume,
20+
example,
21+
given,
22+
note,
23+
reject,
24+
settings,
25+
strategies as st,
26+
)
1827
from hypothesis.internal.conjecture.dfa import DEAD, ConcreteDFA
1928

2029

@@ -112,7 +121,8 @@ def test_canonicalised_matches_same_strings(dfa, via_repr):
112121
)
113122

114123

115-
@settings(max_examples=20)
124+
# filters about 80% of examples. should potentially improve at some point.
125+
@settings(max_examples=20, suppress_health_check=[HealthCheck.filter_too_much])
116126
@given(dfas())
117127
def test_has_string_of_max_length(dfa):
118128
length = dfa.max_length(dfa.start)

0 commit comments

Comments
 (0)