summaryrefslogtreecommitdiff
path: root/src/_pytest/logging.py
diff options
context:
space:
mode:
authorpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2020-12-30 11:56:09 +0200
committerGitHub <noreply@github.com>2020-12-30 11:56:09 +0200
commitee03e31831900c3a7aba9f94a9693a833a3ab9de (patch)
tree431d7984ce45526a5403316fddafac12171cd25c /src/_pytest/logging.py
parent77519048753f629847d3edaf8344753ad6689ada (diff)
downloadpytest-ee03e31831900c3a7aba9f94a9693a833a3ab9de.tar.gz
[pre-commit.ci] pre-commit autoupdate (#8201)
* [pre-commit.ci] pre-commit autoupdate * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * manual fixes after configuration update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Anthony Sottile <asottile@umich.edu>
Diffstat (limited to 'src/_pytest/logging.py')
-rw-r--r--src/_pytest/logging.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/_pytest/logging.py b/src/_pytest/logging.py
index 2e4847328..e0d71c7eb 100644
--- a/src/_pytest/logging.py
+++ b/src/_pytest/logging.py
@@ -685,9 +685,11 @@ class LoggingPlugin:
def _runtest_for(self, item: nodes.Item, when: str) -> Generator[None, None, None]:
"""Implement the internals of the pytest_runtest_xxx() hooks."""
with catching_logs(
- self.caplog_handler, level=self.log_level,
+ self.caplog_handler,
+ level=self.log_level,
) as caplog_handler, catching_logs(
- self.report_handler, level=self.log_level,
+ self.report_handler,
+ level=self.log_level,
) as report_handler:
caplog_handler.reset()
report_handler.reset()