Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests frequently fail hypothesis health checks #177

Closed
mgorny opened this issue Nov 21, 2019 · 1 comment
Closed

Tests frequently fail hypothesis health checks #177

mgorny opened this issue Nov 21, 2019 · 1 comment

Comments

@mgorny
Copy link

mgorny commented Nov 21, 2019

I've attempted running tests with hypothesis 4.44.2 and they frequently fail with the following error:

==================================================================== FAILURES =====================================================================
________________________________________________________ TestDictToIterable.test_ordering _________________________________________________________

self = <test_hpack.TestDictToIterable object at 0x7faaa7cbce48>

    @given(
>       special_keys=sets(keys),
        boring_keys=sets(keys),
    )
    def test_ordering(self, special_keys, boring_keys):
        """
        _dict_to_iterable produces an iterable where all the keys beginning
        with a colon are emitted first.
E       hypothesis.errors.FailedHealthCheck: Data generation is extremely slow: Only produced 0 valid examples in 1.53 seconds (0 invalid ones and 2 exceeded maximum size). Try decreasing size of the data you're generating (with e.g.max_size or max_leaves parameters).
E       See https://hypothesis.readthedocs.io/en/latest/healthchecks.html for more information about this. If you want to disable just this health check, add HealthCheck.too_slow to the suppress_health_check settings for this test.

test/test_hpack.py:753: FailedHealthCheck
------------------------------------------------------------------- Hypothesis --------------------------------------------------------------------
You can add @seed(41570203220120605597689971933743567532) to this test or run pytest with --hypothesis-seed=41570203220120605597689971933743567532 to reproduce this failure.
______________________________________________ TestDictToIterable.test_ordering_applies_to_encoding _______________________________________________

self = <test_hpack.TestDictToIterable object at 0x7faaa7cead30>

    @given(
>       special_keys=sets(keys),
        boring_keys=sets(keys),
    )
    def test_ordering_applies_to_encoding(self, special_keys, boring_keys):
        """
        When encoding a dictionary the special keys all appear first.
E       hypothesis.errors.FailedHealthCheck: Data generation is extremely slow: Only produced 7 valid examples in 1.65 seconds (3 invalid ones and 2 exceeded maximum size). Try decreasing size of the data you're generating (with e.g.max_size or max_leaves parameters).
E       See https://hypothesis.readthedocs.io/en/latest/healthchecks.html for more information about this. If you want to disable just this health check, add HealthCheck.too_slow to the suppress_health_check settings for this test.

test/test_hpack.py:790: FailedHealthCheck
------------------------------------------------------------------- Hypothesis --------------------------------------------------------------------
You can add @seed(189963379516472093917678717077645948264) to this test or run pytest with --hypothesis-seed=189963379516472093917678717077645948264 to reproduce this failure.
======================================================= 2 failed, 82 passed in 7.63 seconds =======================================================
@sethmlarson
Copy link
Member

Should be fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants