Skip to content

Commit

Permalink
Add missing cooperative constructor changelog (#9559)
Browse files Browse the repository at this point in the history
This was supposed to be part of #9488, but I only now noticed it was lying around uncommitted in my git dir
  • Loading branch information
The-Compiler committed Jan 27, 2022
1 parent 843f03e commit 597bb93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions changelog/9488.deprecation.rst
@@ -0,0 +1,7 @@
If custom subclasses of nodes like :class:`pytest.Item` override the
``__init__`` method, they should take ``**kwargs``. See
:ref:`uncooperative-constructors-deprecated` for details.

Note that a deprection warning is only emitted when there is a conflict in the
arguments pytest expected to pass. This deprecation was already part of pytest
7.0.0rc1 but wasn't documented.

0 comments on commit 597bb93

Please sign in to comment.