MCPcopy Index your code
hub / github.com/python/cpython / addFailure

Method addFailure

Lib/unittest/result.py:120–124  ·  view source on GitHub ↗

Called when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info().

(self, test, err)

Source from the content-addressed store, hash-verified

118
119 @failfast
120 def addFailure(self, test, err):
121 """Called when an error has occurred. 'err' is a tuple of values as
122 returned by sys.exc_info()."""
123 self.failures.append((test, self._exc_info_to_string(err, test)))
124 self._mirrorOutput = True
125
126 def addSubTest(self, test, subtest, err):
127 """Called at the end of a subtest.

Calls 2

_exc_info_to_stringMethod · 0.95
appendMethod · 0.45