Skip to content

Commit

Permalink
[7.0.x] Add missing cooperative constructor changelog (#9563)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Bruhin <me@the-compiler.org>
  • Loading branch information
github-actions[bot] and The-Compiler committed Jan 27, 2022
1 parent 4b1707f commit ab549bb
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 ab549bb

Please sign in to comment.