pytest - Suppress DeprecationWarning from specific 3rd party modules
问题 When I run pytest I'm getting some deprecation warnings from a 3rd party library. I'd like to be informed about any deprecation warnings in my own code, but not in a vendored copy of a library bundled with another 3rd-party library. This answer was helpful in getting me partway there. If I run pytest like this: $ pytest ./tests/ I get: $ pytest ./tests/ ============================= test session starts ============================== platform linux -- Python 3.7.4, pytest-5.2.1, py-1.8.0,