(self, item: nodes.Node, *, _ispytest: bool = False)
| 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. |
nothing calls this directly
no test coverage detected