diff --git a/src/_pytest/nodes.py b/src/_pytest/nodes.py index 00ec80894..ce02e70cd 100644 --- a/src/_pytest/nodes.py +++ b/src/_pytest/nodes.py @@ -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