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