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

Method doCleanups

Lib/unittest/case.py:704–715  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

702 stopTestRun()
703
704 def doCleanups(self):
705 """Execute all cleanup functions. Normally called for you after
706 tearDown."""
707 outcome = self._outcome or _Outcome()
708 while self._cleanups:
709 function, args, kwargs = self._cleanups.pop()
710 with outcome.testPartExecutor(self):
711 self._callCleanup(function, *args, **kwargs)
712
713 # return this for backwards compatibility
714 # even though we no longer use it internally
715 return outcome.success
716
717 @classmethod
718 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