Skip to content

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