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

Method _addDuration

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

Source from the content-addressed store, hash-verified

605 addUnexpectedSuccess(self)
606
607 def _addDuration(self, result, elapsed):
608 try:
609 addDuration = result.addDuration
610 except AttributeError:
611 warnings.warn("TestResult has no addDuration method",
612 RuntimeWarning)
613 else:
614 addDuration(self, elapsed)
615
616 def _callSetUp(self):
617 self.setUp()

Callers 1

runMethod · 0.95

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected