Change PytestRemovedIn8Warning to error by default

Per our backward compatibility policy.
This commit is contained in:
Ran Benita
2023-06-23 14:36:48 +03:00
parent 57d352460c
commit a4a189ad99
7 changed files with 52 additions and 19 deletions

View File

@@ -49,6 +49,8 @@ def catch_warnings_for_item(
warnings.filterwarnings("always", category=DeprecationWarning)
warnings.filterwarnings("always", category=PendingDeprecationWarning)
warnings.filterwarnings("error", category=pytest.PytestRemovedIn8Warning)
apply_warning_filters(config_filters, cmdline_filters)
# apply filters from "filterwarnings" marks