From 80ad4485908be67e300ef370922cea5936964e00 Mon Sep 17 00:00:00 2001 From: Grygorii Iermolenko Date: Fri, 15 Feb 2019 16:12:10 +0200 Subject: [PATCH] Fix code-block in Node docstring --- src/_pytest/nodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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