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

Method _addDuration

Lib/unittest/case.py:600–607  ·  view source on GitHub ↗
(self, result, elapsed)

Source from the content-addressed store, hash-verified

598 addUnexpectedSuccess(self)
599
600 def _addDuration(self, result, elapsed):
601 try:
602 addDuration = result.addDuration
603 except AttributeError:
604 warnings.warn("TestResult has no addDuration method",
605 RuntimeWarning)
606 else:
607 addDuration(self, elapsed)
608
609 def _callSetUp(self):
610 self.setUp()

Callers 1

runMethod · 0.95

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected