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
commit 68dc433bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.
Example usage::
Example usage:
.. code-block:: python
node.warn(PytestWarning("some message"))
"""
from _pytest.warning_types import PytestWarning