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

Use recwarn everywhere #1878

Merged
merged 3 commits into from
Jun 3, 2016
Merged

Use recwarn everywhere #1878

merged 3 commits into from
Jun 3, 2016

Conversation

untitaker
Copy link
Contributor

...instead of custom fixture. Also assert that no warnings are left over
after the test.

warnings.simplefilter('default', category=DeprecationWarning)
return lambda: warnings.catch_warnings(record=True)
@pytest.fixture(autouse=True)
def catch_deprecation_warnings(recwarn, request):

This comment was marked as off-topic.

This comment was marked as off-topic.

@untitaker
Copy link
Contributor Author

@ThiefMaster @davidism Please review.

...instead of custom fixture. Also assert that no warnings are left over
after the test.
@untitaker
Copy link
Contributor Author

Interesting, we're getting a ResourceWarning somewhere.

@untitaker untitaker merged commit 3d72099 into pallets:master Jun 3, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants