MCPcopy Create free account
hub / github.com/pytest-dev/pytest / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

355 """Provides access and control of log capturing."""
356
357 def __init__(self, item: nodes.Node, *, _ispytest: bool = False) -> None:
358 check_ispytest(_ispytest)
359 self._item = item
360 self._initial_handler_level: Optional[int] = None
361 # Dict of log name -> log level.
362 self._initial_logger_levels: Dict[Optional[str], int] = {}
363
364 def _finalize(self) -> None:
365 """Finalize the fixture.

Callers

nothing calls this directly

Calls 1

check_ispytestFunction · 0.90

Tested by

no test coverage detected