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
caplog.at_level
affects caplog handler too?
#7656
Comments
For what it's worth, I think this test would have passed with pytest <6.0 (see IAMconsortium/pyam#422 and adobe-type-tools/psautohint#264). |
Thanks for the report @znicholls. I was a little confused by the issue title " I think there are some things we can improve here, will try to dig into it more when I get the chance. |
caplog.at_level
affects root logger too?caplog.at_level
affects caplog handler too?
thanks @bluetech! I just updated the title so hopefully it is clearer. If you see a way forward I'm happy to have a go at implementing. |
This also effects
This code passes with pytest 5.4.3
But fails with pytest 6.1.2
Reading the documentation for |
pip list
from the virtual environment you are usingFor clarity, I'm not sure if this is a bug or whether we are just using pytest incorrectly.
In fcbaab8, the behaviour of
at_level
was changed so that it affectsself.handler
too. Was this on purpose? It means that adding the following code totesting/logging/test_fixture.py
causes the tests to fail.I'm on macOS Mojave 10.14.6, Python 3.7
The text was updated successfully, but these errors were encountered: