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

Method addFailure

src/_pytest/unittest.py:250–253  ·  view source on GitHub ↗
(
        self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType"
    )

Source from the content-addressed store, hash-verified

248 self._addexcinfo(rawexcinfo)
249
250 def addFailure(
251 self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType"
252 ) -> None:
253 self._addexcinfo(rawexcinfo)
254
255 def addSkip(self, testcase: "unittest.TestCase", reason: str) -> None:
256 try:

Callers

nothing calls this directly

Calls 1

_addexcinfoMethod · 0.95

Tested by

no test coverage detected