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

Method doCleanups

Lib/unittest/case.py:697–708  ·  view source on GitHub ↗

Execute all cleanup functions. Normally called for you after tearDown.

(self)

Source from the content-addressed store, hash-verified

695 stopTestRun()
696
697 def doCleanups(self):
698 """Execute all cleanup functions. Normally called for you after
699 tearDown."""
700 outcome = self._outcome or _Outcome()
701 while self._cleanups:
702 function, args, kwargs = self._cleanups.pop()
703 with outcome.testPartExecutor(self):
704 self._callCleanup(function, *args, **kwargs)
705
706 # return this for backwards compatibility
707 # even though we no longer use it internally
708 return outcome.success
709
710 @classmethod
711 def doClassCleanups(cls):

Callers 15

runMethod · 0.95
tearDownMethod · 0.95
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80

Calls 4

_callCleanupMethod · 0.95
_OutcomeClass · 0.85
testPartExecutorMethod · 0.80
popMethod · 0.45

Tested by 15

tearDownMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64
test_full_cycleMethod · 0.64