Fix code-block in Node docstring
This commit is contained in:
parent
2106515f6d
commit
80ad448590
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue