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

hypothesis.errors.InvalidArgument: min_size=8_640 is larger than Hypothesis is designed to handle #3896

Closed
samthakur587 opened this issue Feb 24, 2024 · 1 comment

Comments

@samthakur587
Copy link

samthakur587 commented Feb 24, 2024

elements = one_of(floats(min_value=-3.0934759522862973e+38, max_value=-1.2930438139304855e-38, allow_nan=False, allow_infinity=Fa...9304855e-38, max_value=3.0934759522862973e+38, allow_nan=False, allow_infinity=False, allow_subnormal=False, width=32))
min_size = 8640, max_size = 8640

    def __init__(self, elements, min_size=0, max_size=float("inf")):
        super().__init__()
        self.min_size = min_size or 0
        self.max_size = max_size if max_size is not None else float("inf")
        assert 0 <= self.min_size <= self.max_size
        if min_size > BUFFER_SIZE:
>           raise InvalidArgument(
                f"min_size={min_size:_d} is larger than Hypothesis is designed to handle"
            )
E           hypothesis.errors.InvalidArgument: min_size=8_640 is larger than Hypothesis is designed to handle
E           while generating 'dtype_and_x' from dtype_and_values(available_dtypes=get_dtypes(kind='float'))

this error is coming in only the latest version. i last version 6.98.10 working fine.

@Zac-HD
Copy link
Member

Zac-HD commented Feb 24, 2024

This was a deliberate change to warn you about strategies which have never worked - see #3892.

As a general comment, we can usually only help if you provide a minimal reproducible example which triggers your problem. In this case, I have no idea what your code looks like, nor any suggestions about how you might resolve the error. If you want to make an easy-to-run minimal example and share it below, I can give some feedback on it 🙂

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