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

Function enterModuleContext

Lib/unittest/case.py:136–138  ·  view source on GitHub ↗

Same as enterContext, but module-wide.

(cm)

Source from the content-addressed store, hash-verified

134 _module_cleanups.append((function, args, kwargs))
135
136def enterModuleContext(cm):
137 """Same as enterContext, but module-wide."""
138 return _enter_context(cm, addModuleCleanup)
139
140
141def doModuleCleanups():

Callers

nothing calls this directly

Calls 1

_enter_contextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…