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
Labels
bug

Comments

@Zac-HD
Copy link
Member

@Zac-HD 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.