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

cacheprovider: use warnings directly #6740

Merged
merged 2 commits into from
Feb 15, 2020

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Feb 15, 2020

Allows for filtering of PytestCacheWarning.

Using _issue_warning_captured is not necessary here, and was probably
only used because the cacheprovider misses warnings during
pytest_sessionfinish, which is also fixed here.

I think the usage of _issue_warning_captured can be removed/reduced
further, but also that this is good enough for now.

Ref: #6681.

Allows for filtering of PytestCacheWarning.

Using `_issue_warning_captured` is not necessary here, and was probably
only used because the cacheprovider misses warnings during
`pytest_sessionfinish`, which is also fixed here.

I think the usage of `_issue_warning_captured` can be removed/reduced
further, but also that this is good enough for now.

Ref: pytest-dev#6681.
Would need to be adjusted anyway non-trivially, and we can just harden
`test_cache_failure_warns` instead.
@blueyed blueyed merged commit 7fc9d4c into pytest-dev:master Feb 15, 2020
@blueyed blueyed deleted the fix-PytestCacheWarning branch February 15, 2020 04:31
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.

2 participants