From b3ae807317669531cf947a9df1aa17666305cb1e Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 13 Jun 2020 09:42:34 -0300 Subject: [PATCH] Add CHANGELOG entry for #5584 --- changelog/5584.breaking.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 changelog/5584.breaking.rst diff --git a/changelog/5584.breaking.rst b/changelog/5584.breaking.rst new file mode 100644 index 00000000000..68b9f4c8c09 --- /dev/null +++ b/changelog/5584.breaking.rst @@ -0,0 +1,23 @@ +**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 6.1**, so please consult the +`Deprecations and Removals `__ +section in the docs for directions on how to update existing code. + +In the pytest ``6.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: + +.. code-block:: ini + + [pytest] + filterwarnings = + ignore::pytest.PytestDeprecationWarning + +But this will stop working when pytest ``6.1`` is released. + +**If you have concerns** about the removal of a specific feature, please add a +comment to `#5584 `__.