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 <[email protected]>
  • Loading branch information
github-actions[bot] and The-Compiler authored 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
Original file line number Diff line number Diff line change
@@ -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.