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

Method _addExpectedFailure

Lib/unittest/case.py:582–590  ·  view source on GitHub ↗
(self, result, exc_info)

Source from the content-addressed store, hash-verified

580 self._subtest = parent
581
582 def _addExpectedFailure(self, result, exc_info):
583 try:
584 addExpectedFailure = result.addExpectedFailure
585 except AttributeError:
586 warnings.warn("TestResult has no addExpectedFailure method, reporting as passes",
587 RuntimeWarning)
588 result.addSuccess(self)
589 else:
590 addExpectedFailure(self, exc_info)
591
592 def _addUnexpectedSuccess(self, result):
593 try:

Callers 1

runMethod · 0.95

Calls 2

warnMethod · 0.45
addSuccessMethod · 0.45

Tested by

no test coverage detected