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

Method __init__

src/_pytest/logging.py:330–333  ·  view source on GitHub ↗

Create a new log handler.

(self)

Source from the content-addressed store, hash-verified

328 stream: StringIO
329
330 def __init__(self) -> None:
331 """Create a new log handler."""
332 super().__init__(StringIO())
333 self.records: List[logging.LogRecord] = []
334
335 def emit(self, record: logging.LogRecord) -> None:
336 """Keep the log records in a list in addition to the log text."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected