From 17468fc99c0bee8efaffb7dfb506f23e3b30145f Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 16 Mar 2018 00:04:28 -0300 Subject: [PATCH] Fix caplog docstring: indentation caused errors during docs build --- _pytest/logging.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_pytest/logging.py b/_pytest/logging.py index c920659a5..b265ca34d 100644 --- a/_pytest/logging.py +++ b/_pytest/logging.py @@ -292,8 +292,7 @@ def caplog(request): * caplog.text() -> string containing formatted log output * caplog.records() -> list of logging.LogRecord instances * caplog.record_tuples() -> list of (logger_name, level, message) tuples - * caplog.clear() -> clear captured records and formatted log output - string + * caplog.clear() -> clear captured records and formatted log output string """ result = LogCaptureFixture(request.node) yield result