Fix code-block in Node docstring

This commit is contained in:
Grygorii Iermolenko 2019-02-15 16:12:10 +02:00
parent 2106515f6d
commit 80ad448590
1 changed files with 2 additions and 1 deletions

View File

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