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

Method emit

src/_pytest/logging.py:396–399  ·  src/_pytest/logging.py::LogCaptureHandler.emit

Keep the log records in a list in addition to the log text.

(self, record: logging.LogRecord)

Source from the content-addressed store, hash-verified

394 self.records: list[logging.LogRecord] = []
395
396 def emit(self, record: logging.LogRecord) -> None:
397 class="st">""class="st">"Keep the log records in a list in addition to the log text."class="st">""
398 self.records.append(record)
399 super().emit(record)
400
401 def reset(self) -> None:
402 self.records = []

Callers 1

emitMethod · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected