summaryrefslogtreecommitdiff
path: root/src/_pytest/logging.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2020-01-28 17:05:41 +0100
committerDaniel Hahler <git@thequod.de>2020-01-30 19:58:43 +0100
commit88b800355a42a697aad123fb9546e4dbadc2cf34 (patch)
tree1f8d6c6c534f2ebd147dabd6663566e2b0350152 /src/_pytest/logging.py
parenteb5e651d7eaf23c2ef73afe3892f268b191d2db0 (diff)
downloadpytest-88b800355a42a697aad123fb9546e4dbadc2cf34.tar.gz
typing: pytest_collection
Diffstat (limited to 'src/_pytest/logging.py')
-rw-r--r--src/_pytest/logging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/_pytest/logging.py b/src/_pytest/logging.py
index ccd79b834..df0da3daa 100644
--- a/src/_pytest/logging.py
+++ b/src/_pytest/logging.py
@@ -5,6 +5,7 @@ from contextlib import contextmanager
from io import StringIO
from typing import AbstractSet
from typing import Dict
+from typing import Generator
from typing import List
from typing import Mapping
@@ -591,7 +592,7 @@ class LoggingPlugin:
) is not None or self._config.getini("log_cli")
@pytest.hookimpl(hookwrapper=True, tryfirst=True)
- def pytest_collection(self):
+ def pytest_collection(self) -> Generator[None, None, None]:
with self.live_logs_context():
if self.log_cli_handler:
self.log_cli_handler.set_when("collection")