Skip to content

Commit 6a00625

Browse files
committed
Add missing cooperative constructor changelog
This was supposed to be part of pytest-dev#9488, but I only now noticed it was lying around uncommitted in my git dir
1 parent f064942 commit 6a00625

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

changelog/9488.deprecation.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
If custom subclasses of nodes like :class:`pytest.Item` override the
2+
``__init__`` method, they should take ``**kwargs``. See
3+
:ref:`uncooperative-constructors-deprecated` for details.
4+
5+
Note that a deprection warning is only emitted when there is a conflict in the
6+
arguments pytest expected to pass. This deprecation was already part of pytest
7+
7.0.0rc1 but wasn't documented.

0 commit comments

Comments
 (0)