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

Internal error for unique lists #2247

Closed
Zac-HD opened this issue Dec 1, 2019 · 0 comments · Fixed by #2248
Closed

Internal error for unique lists #2247

Zac-HD opened this issue Dec 1, 2019 · 0 comments · Fixed by #2248
Labels
bug something is clearly wrong here

Comments

@Zac-HD
Copy link
Member

Zac-HD commented Dec 1, 2019

from hypothesis import given, strategies as st

@given(st.lists(st.sampled_from([0, 0.0]), unique=True, min_size=1))
def t(x): pass

t()

triggers an assertion via conjecture.utils.integer_range(data, lower=0, upper=-1)

@Zac-HD Zac-HD added the bug something is clearly wrong here label Dec 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is clearly wrong here
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant