From 2eaf3db6aeda21c060b18531c74776ffb41d33fc Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 22 Nov 2018 20:21:22 -0200 Subject: [PATCH] Fix docstring indentation (docs env) --- src/_pytest/_code/code.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/_pytest/_code/code.py b/src/_pytest/_code/code.py index 595fee6d3..1b49fe75b 100644 --- a/src/_pytest/_code/code.py +++ b/src/_pytest/_code/code.py @@ -407,17 +407,16 @@ class ExceptionInfo(object): @classmethod def from_current(cls, exprinfo=None): - """returns a exceptioninfo matching the current traceback + """returns an ExceptionInfo matching the current traceback .. warning:: - experimental api + Experimental API - :param exprinfo: an text string helping to determine if we should - strip assertionerror from the output, defaults - to the exception message/__str__() - + :param exprinfo: a text string helping to determine if we should + strip ``AssertionError`` from the output, defaults + to the exception message/``__str__()`` """ tup = sys.exc_info() _striptext = ""