apply suggested enhancements in deprecations.rst

This commit is contained in:
Ronny Pfannschmidt 2018-12-20 12:11:26 +01:00
parent 102ffc69e8
commit 8f8d3114dd
1 changed files with 4 additions and 4 deletions

View File

@ -496,16 +496,16 @@ removes a source of confusion for users.
``Node.get_marker`` ``Node.get_marker``
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
*removed in version 4.1* *Removed in version 4.0*
As part of a large :ref:`marker-revamp`, :meth:`_pytest.nodes.Node.get_marker` is deprecated. See As part of a large :ref:`marker-revamp`, :meth:`_pytest.nodes.Node.get_marker` is deprecated. See
:ref:`the documentation <update marker code>` on tips on how to update your code. :ref:`the documentation <update marker code>` on tips on how to update your code.
``somefunction.markname`` ``somefunction.markname``
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
* Removed in version 4.1 *Removed in version 4.0*
As part of a large :ref:`marker-revamp` we already deprecated using ``MarkInfo`` As part of a large :ref:`marker-revamp` we already deprecated using ``MarkInfo``
the only correct way to get markers of an element is via ``node.iter_markers([name]``. the only correct way to get markers of an element is via ``node.iter_markers(name)``.