Skip to content

Commit b3ae807

Browse files
committed
Add CHANGELOG entry for pytest-dev#5584
1 parent dca95c7 commit b3ae807

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

changelog/5584.breaking.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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>`__.

0 commit comments

Comments
 (0)