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

Sampling fix #624

Merged
merged 2 commits into from
May 15, 2017
Merged

Sampling fix #624

merged 2 commits into from
May 15, 2017

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented May 14, 2017

A tiny compatibility fix for sampled_from, allowing Enums without a deprecation warning. Closes #595.

Uses the current year (in UTC) for the sphinx copyright notice.

@Zac-HD Zac-HD requested a review from DRMacIver May 14, 2017 12:13

@given(sampled_from(an_enum))
def test_can_sample_enums(member):
assert isinstance(member, an_enum)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth running in strict mode to see that we don't raise a DeprecationWarning?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done - if there's nothing else, I'd appreciate an approval so I can juggle some merges before going to bed.

@Zac-HD
Copy link
Member Author

Zac-HD commented May 15, 2017

Will merge in a few hours, after the pending things are done.

@Zac-HD Zac-HD merged commit 5e59eb3 into HypothesisWorks:master May 15, 2017
@Zac-HD
Copy link
Member Author

Zac-HD commented May 15, 2017

...the build is going to fail, because it has yesterday's date in the changelog. @DRMacIver, is this the time for your admin powers to shine?

@DRMacIver
Copy link
Member

@DRMacIver, is this the time for your admin powers to shine?

Not sure there's much I can do about that, but if you give me a pull request to update the date, I'll happily fast track it through.

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 this pull request may close these issues.

False positive HypothesisDeprecationWarning
3 participants