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

Method handleError

src/_pytest/logging.py:344–350  ·  view source on GitHub ↗
(self, record: logging.LogRecord)

Source from the content-addressed store, hash-verified

342 self.stream = StringIO()
343
344 def handleError(self, record: logging.LogRecord) -> None:
345 if logging.raiseExceptions:
346 # Fail the test if the log message is bad (emit failed).
347 # The default behavior of logging is to print "Logging error"
348 # to stderr with the call stack and some extra details.
349 # pytest wants to make such mistakes visible during testing.
350 raise
351
352
353@final

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected