Skip to content

Commit

Permalink
Suppress failing health checks for sets of large samples
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Jul 2, 2019
1 parent 6cce980 commit 7040de6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hypothesis-python/tests/nocover/test_sampled_from.py
Expand Up @@ -20,7 +20,7 @@
import pytest

import hypothesis.strategies as st
from hypothesis import given
from hypothesis import HealthCheck, given, settings
from hypothesis.errors import FailedHealthCheck
from hypothesis.internal.compat import hrange
from tests.common.utils import counts_calls, fails_with
Expand Down Expand Up @@ -70,6 +70,7 @@ def test_unsat_sets_of_samples(x):
assert False


@settings(suppress_health_check=[HealthCheck.too_slow, HealthCheck.filter_too_much])
@given(st.sets(st.sampled_from(range(50)), min_size=50))
def test_efficient_sets_of_samples(x):
assert x == set(range(50))

0 comments on commit 7040de6

Please sign in to comment.