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
Adding support for long lists #3967
Labels
question
not sure it's a bug? questions welcome
Comments
If the smallest possible input to your test function is a 8,760-element long list, it seems like this might make it hard to debug! My top suggestions are to
The reason we have that limit in the first place is for performance reasons; without some cap it'd be easy to waste a lot of time and run out of memory in various parts of our internals. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working with hypothesis version 6.100.2 (and hypothesis-jsonschema) to test some simulation code using pydantic models as inputs. During this I have run into a limitation on the length of a list that is allowed in hypothesis .
The usage case is a timeseries of hourly data for one year - a list of floats with length=8760.
The error raised comes from the
class ListStrategy
in "hypothesis\strategies_internal\collections.py" on line 152:where the
BUFFER_SIZE
is hardcoded toBUFFER_SIZE = 8 * 1024
Any ideas of how to work with long timeseries data in hypothesis ?
The text was updated successfully, but these errors were encountered: