Skip to content

deprecated_call detects pending warnings again #1081

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

Merged
merged 2 commits into from
Sep 28, 2015

Conversation

hunse
Copy link
Contributor

@hunse hunse commented Sep 28, 2015

The first commit ensures deprecated_call now looks for PendingDeprecationWarnings, as it did previously but was broken by #897. Fixes #1037. Also added a test so this does not happen again.

I realized that before 2.8.0, deprecated_call would be fine with any warning being raised, not just a DeprecationWarning or PendingDeprecationWarning. The second commit ensures that other warnings do not suffice.

`deprecated_call` now looks for PendingDeprecationWarnings,
as it did previously but was broken by pytest-dev#897. Fixes pytest-dev#1037.

Also added a test so this does not happen again.
`deprecated_call` used to accept any warning. As of pytest-dev#897, it
is now specific to DeprecationWarnings, and another commit in
this PR extends this to PendingDeprecationWarnings. This commit
makes sure this stays the case.
hpk42 added a commit that referenced this pull request Sep 28, 2015
`deprecated_call` detects pending warnings again
@hpk42 hpk42 merged commit 839909f into pytest-dev:master Sep 28, 2015
mark-adams added a commit to mark-adams/pyjwt that referenced this pull request Oct 9, 2015
…ation warnings

This was fixed in pytest-dev/pytest#1081 but is not released yet.
mark-adams added a commit to mark-adams/pyjwt that referenced this pull request Oct 9, 2015
…ation warnings

This was fixed in pytest-dev/pytest#1081 but is not released yet.
rylanhall33 added a commit to rylanhall33/pyjwt that referenced this pull request Jun 15, 2022
…ation warnings

This was fixed in pytest-dev/pytest#1081 but is not released yet.
xmas7 pushed a commit to RubyOnWorld/pyjwt that referenced this pull request Sep 6, 2022
…ation warnings

This was fixed in pytest-dev/pytest#1081 but is not released yet.
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