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

Method addError

Lib/unittest/result.py:112–117  ·  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

110
111 @failfast
112 def addError(self, test, err):
113 """Called when an error has occurred. 'err' is a tuple of values as
114 returned by sys.exc_info().
115 """
116 self.errors.append((test, self._exc_info_to_string(err, test)))
117 self._mirrorOutput = True
118
119 @failfast
120 def addFailure(self, test, err):

Callers 4

test_addErrorMethod · 0.95
testFailFastMethod · 0.95
_addErrorFunction · 0.45

Calls 2

_exc_info_to_stringMethod · 0.95
appendMethod · 0.45

Tested by 2

test_addErrorMethod · 0.76
testFailFastMethod · 0.76