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

Function doModuleCleanups

Lib/unittest/case.py:141–152  ·  view source on GitHub ↗

Execute all module cleanup functions. Normally called for you after tearDownModule.

()

Source from the content-addressed store, hash-verified

139
140
141def doModuleCleanups():
142 """Execute all module cleanup functions. Normally called for you after
143 tearDownModule."""
144 exceptions = []
145 while _module_cleanups:
146 function, args, kwargs = _module_cleanups.pop()
147 try:
148 function(*args, **kwargs)
149 except Exception as exc:
150 exceptions.append(exc)
151 if exceptions:
152 raise ExceptionGroup('module cleanup failed', exceptions)
153
154
155def skip(reason):

Callers

nothing calls this directly

Calls 3

functionFunction · 0.50
popMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…