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

Function _addError

Lib/unittest/case.py:95–100  ·  view source on GitHub ↗
(result, test, exc_info)

Source from the content-addressed store, hash-verified

93 result.addSuccess(test_case)
94
95def _addError(result, test, exc_info):
96 if result is not None and exc_info is not None:
97 if issubclass(exc_info[0], test.failureException):
98 result.addFailure(test, exc_info)
99 else:
100 result.addError(test, exc_info)
101
102def _id(obj):
103 return obj

Callers 1

testPartExecutorMethod · 0.85

Calls 2

addFailureMethod · 0.45
addErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…