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

Function enterModuleContext

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

Same as enterContext, but module-wide.

(cm)

Source from the content-addressed store, hash-verified

139 _module_cleanups.append((function, args, kwargs))
140
141def enterModuleContext(cm):
142 """Same as enterContext, but module-wide."""
143 return _enter_context(cm, addModuleCleanup)
144
145
146def doModuleCleanups():

Callers

nothing calls this directly

Calls 1

_enter_contextFunction · 0.85

Tested by

no test coverage detected