File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ **PytestDeprecationWarning are now errors by default. **
2+
3+ Following our plan to remove deprecated features with as little disruption as
4+ possible, all warnings of type ``PytestDeprecationWarning `` now generate errors
5+ instead of warning messages.
6+
7+ **The affected features will be effectively removed in pytest 6.1 **, so please consult the
8+ `Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html >`__
9+ section in the docs for directions on how to update existing code.
10+
11+ In the pytest ``6.0.X `` series, it is possible to change the errors back into warnings as a stop
12+ gap measure by adding this to your ``pytest.ini `` file:
13+
14+ .. code-block :: ini
15+
16+ [pytest]
17+ filterwarnings =
18+ ignore::pytest.PytestDeprecationWarning
19+
20+ But this will stop working when pytest ``6.1 `` is released.
21+
22+ **If you have concerns ** about the removal of a specific feature, please add a
23+ comment to `#5584 <https://github.com/pytest-dev/pytest/issues/5584 >`__.
You can’t perform that action at this time.
0 commit comments