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

Function restore__testsinglephase

Lib/test/test_import/__init__.py:154–161  ·  view source on GitHub ↗
(*, _orig=_testsinglephase)

Source from the content-addressed store, hash-verified

152
153if _testsinglephase is not None:
154 def restore__testsinglephase(*, _orig=_testsinglephase):
155 # We started with the module imported and want to restore
156 # it to its nominal state.
157 sys.modules.pop('_testsinglephase', None)
158 _orig._clear_globals()
159 origin = _orig.__spec__.origin
160 _testinternalcapi.clear_extension('_testsinglephase', origin)
161 import _testsinglephase
162
163
164def requires_singlephase_init(meth):

Callers 1

methFunction · 0.85

Calls 1

popMethod · 0.45

Tested by

no test coverage detected