Skip to content

Commit

Permalink
add docs for deprecation of Item/File inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Jun 6, 2021
1 parent 628cd88 commit 490fca7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/en/deprecations.rst
Expand Up @@ -42,6 +42,20 @@ As pytest tries to move off `py.path.local <https://py.readthedocs.io/en/latest/

Pytest will provide compatibility for quite a while.

Diamond inheritance between :class:`pytest.File` and :class:`pytest.Item`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. deprecated:: 6.3

Inheriting from both Item and file at once has never been supported officially,
however some plugins providing linting/code analysis have been using this as a hack.

This practice is now officially deprecated and a common way to fix this is `example pr fixing inheritance`_.



.. _example pr fixing inheritance: https://github.com/asmeurer/pytest-flakes/pull/40/files


Backward compatibilities in ``Parser.addoption``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 490fca7

Please sign in to comment.