Unittest showing third-party deprecation warnings, but pytest won't do it #9867
-
I'm moving a test suite from unittest to pytest. Unittest behaviorWhen running unittest, I can see deprecation warnings just fine from both the std lib and third-party deps. Here are some standard library deprecation warnings (spit out as a test is executing):
Pytest behaviorBut when I now execute these tests (originally written for unittest) with pytest, I no longer see these std lib deprecation warnings anymore. I see the other deprecation warnings from third-party dependencies though. Expected pytest behaviorI would really like to keep seeing these std lib deprecation warnings, as it is a sign of issues we need to address. Do you have any suggestions on making these show with pytest? This is what I'm doing (wrong?)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This ended up being a logger issue. Linking here for completion: Delgan/loguru#641 |
Beta Was this translation helpful? Give feedback.
This ended up being a logger issue. Linking here for completion: Delgan/loguru#641