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

TST: test_get_emission_pix fails with hypothesis.errors.InvalidArgument when run with hypothesis 6.99.11 #12

Closed
pllim opened this issue Mar 21, 2024 · 0 comments · Fixed by #14

Comments

@pllim
Copy link
Contributor

pllim commented Mar 21, 2024

I see that you pinned:

hypothesis = "<=6.47.5"

But probably a good idea to catch up to newer hypothesis release at some point?

    @given(model(), time(), nside(), data())
>   @settings(deadline=None)

tests/test_get_emission.py:30:
...
E           hypothesis.errors.InvalidArgument: ListStrategy(
    integers(min_value=0, max_value=196607), min_size=8_193, max_size=8_193)
    can never generate an example, because min_size is larger than Hypothesis supports.
    Including it is at best slowing down your tests for no benefit;
    at worst making them fail (maybe flakily) with a HealthCheck error.
E           while generating 'Draw 3: ' from pixels(128)
E           Falsifying example: test_get_emission_pix(
E               model=functools.partial(zodipy.zodipy.Zodipy)(
...
E           Draw 1: 'earth'
E           Draw 2: <Quantity 1.25 micron>
E           Explanation:
E               These lines were always and only run by failing examples:
E                   python3.12/enum.py:198

hypothesis/strategies/_internal/collections.py:152: InvalidArgument
--------------
FAILED tests/test_get_emission.py::test_get_emission_pix - hypothesis.errors.InvalidArgument:
ListStrategy(integers(min_value=0, max_value=196607), min_size=8_193, max_size=8...
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

Successfully merging a pull request may close this issue.

1 participant