MCPcopy Index your code
hub / github.com/RustPython/RustPython / _addSkip

Function _addSkip

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

Source from the content-addressed store, hash-verified

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

Callers 2

testPartExecutorMethod · 0.85
runMethod · 0.85

Calls 3

getattrFunction · 0.85
warnMethod · 0.45
addSuccessMethod · 0.45

Tested by

no test coverage detected