From ab549bba8a9ee7f55f3f9a2dc884f47cca34f6c4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Jan 2022 10:36:04 -0300 Subject: [PATCH] [7.0.x] Add missing cooperative constructor changelog (#9563) Co-authored-by: Florian Bruhin --- changelog/9488.deprecation.rst | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 changelog/9488.deprecation.rst diff --git a/changelog/9488.deprecation.rst b/changelog/9488.deprecation.rst new file mode 100644 index 00000000000..5c5807ec34a --- /dev/null +++ b/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.