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

Method reset

src/_pytest/logging.py:340–342  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

338 super().emit(record)
339
340 def reset(self) -> None:
341 self.records = []
342 self.stream = StringIO()
343
344 def handleError(self, record: logging.LogRecord) -> None:
345 if logging.raiseExceptions:

Callers 4

clearMethod · 0.45
_runtest_forMethod · 0.45
post_mortemFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected