You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pytest deprecated_call contextmanager not always seeing warnings #2469
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.
Activity
nicoddemus commentedon Jun 4, 2017
Hmm that's strange, it passes for me on
3.1.1:Can you provide more information about your environment?
reaperhulk commentedon Jun 4, 2017
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.
nicoddemus commentedon Jun 4, 2017
Oh got it, thanks. I can reproduce it now. 👍
deprecated_call context manager captures warnings already raised
deprecated_call context manager captures warnings already raised