-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
pytest deprecated_call contextmanager not always seeing warnings #2469
Labels
plugin: warnings
related to the warnings builtin plugin
type: bug
problem that needs to be addressed
Comments
Hmm that's strange, it passes for me on
Can you provide more information about your environment? |
Oops sorry, that was foolish. I completely forgot to mention that these tests pass as expected on 3.4, 3.5, 3.6, but fail on 2.6, 2.7, and 3.3. |
Oh got it, thanks. I can reproduce it now. 👍 |
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
Jun 7, 2017
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
Jun 7, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
plugin: warnings
related to the warnings builtin plugin
type: bug
problem that needs to be addressed
This is present in the latest pytest (and several previous versions I tried). If you have a function that calls a function that raises a warning then the contextmanager will not capture that warning properly...but only if you've called the function without wrapping it in
deprecated_call
already.The text was updated successfully, but these errors were encountered: