Merge pull request #4802 from gyermolenko/fix_code_block_in_Node_docstring

Fix code-block in Node docstring
This commit is contained in:
Anthony Sottile
2019-02-15 20:09:32 -05:00
committed by GitHub

View File

@@ -113,11 +113,12 @@ class Node(object):
:raise ValueError: if ``warning`` instance is not a subclass of PytestWarning.
Example usage::
Example usage:
.. code-block:: python
node.warn(PytestWarning("some message"))
"""
from _pytest.warning_types import PytestWarning