Turn PytestDeprecationWarning into error (#5410)

Turn PytestDeprecationWarning into error
This commit is contained in:
Bruno Oliveira
2019-06-05 22:20:14 -03:00
committed by GitHub
4 changed files with 56 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ def catch_warnings_for_item(config, ihook, when, item):
warnings.filterwarnings("always", category=PendingDeprecationWarning)
warnings.filterwarnings("error", category=pytest.RemovedInPytest4Warning)
warnings.filterwarnings("error", category=pytest.PytestDeprecationWarning)
# filters should have this precedence: mark, cmdline options, ini
# filters should be applied in the inverse order of precedence