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

Function _addSkip

Lib/unittest/case.py:86–93  ·  view source on GitHub ↗
(result, test_case, reason)

Source from the content-addressed store, hash-verified

84
85
86def _addSkip(result, test_case, reason):
87 addSkip = getattr(result, 'addSkip', None)
88 if addSkip is not None:
89 addSkip(test_case, reason)
90 else:
91 warnings.warn("TestResult has no addSkip method, skips not reported",
92 RuntimeWarning, 2)
93 result.addSuccess(test_case)
94
95def _addError(result, test, exc_info):
96 if result is not None and exc_info is not None:

Callers 2

testPartExecutorMethod · 0.85
runMethod · 0.85

Calls 2

warnMethod · 0.45
addSuccessMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…