Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 959 Bytes

5402.removal.rst

File metadata and controls

23 lines (16 loc) · 959 Bytes

PytestDeprecationWarning are now errors by default.

Following our plan to remove deprecated features with as little disruption as possible, all warnings of type PytestDeprecationWarning now generate errors instead of warning messages.

The affected features will be effectively removed in pytest 5.1, so please consult the Deprecations and Removals section in the docs for directions on how to update existing code.

In the pytest 5.0.X series, it is possible to change the errors back into warnings as a stop gap measure by adding this to your pytest.ini file:

[pytest]
filterwarnings =
    ignore::pytest.PytestDeprecationWarning

But this will stop working when pytest 5.1 is released.

If you have concerns about the removal of a specific feature, please add a comment to #5402.