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

De-flake test #2895

Merged
merged 1 commit into from
Mar 10, 2021
Merged

De-flake test #2895

merged 1 commit into from
Mar 10, 2021

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Mar 10, 2021

This would fail when the retry decorator kicked in (rarely, as expected), because the settings decorator would have assigned to an attribute of function. Using a fresh wrapper each time avoids the problem.

Fixes #2888.

This would fail when the retry decorator kicked in (rarely, as expected), because the settings decorator would have assigned to an attribute of `function`.  Using a fresh wrapper each time avoids the problem.
@Zac-HD Zac-HD added the flaky-tests for when our tests only sometimes pass label Mar 10, 2021
@Zac-HD Zac-HD requested a review from sobolevn March 10, 2021 00:54
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

I like that it was already @flaky(max_runs=3, min_passes=1) 🙂
Thanks!

@Zac-HD Zac-HD merged commit 6e44b1f into HypothesisWorks:master Mar 10, 2021
@Zac-HD Zac-HD deleted the deflake-test branch March 10, 2021 09:55
This was referenced Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-tests for when our tests only sometimes pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests/nocover/test_interesting_origin.py::test_can_generate_specified_version is flaky
3 participants