MCPcopy
hub / github.com/pytest-dev/pytest / __init__

Method __init__

src/_pytest/logging.py:422–428  ·  view source on GitHub ↗
(self, item: nodes.Node, *, _ispytest: bool = False)

Source from the content-addressed store, hash-verified

420 """Provides access and control of log capturing."""
421
422 def __init__(self, item: nodes.Node, *, _ispytest: bool = False) -> None:
423 check_ispytest(_ispytest)
424 self._item = item
425 self._initial_handler_level: int | None = None
426 # Dict of log name -> log level.
427 self._initial_logger_levels: dict[str | None, int] = {}
428 self._initial_disabled_logging_level: int | None = None
429
430 def _finalize(self) -> None:
431 """Finalize the fixture.

Callers

nothing calls this directly

Calls 1

check_ispytestFunction · 0.90

Tested by

no test coverage detected