Home
last modified time | relevance | path

Searched refs:orig_modules (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/support/
D__init__.py92 def _save_and_remove_module(name, orig_modules): argument
102 orig_modules[modname] = sys.modules[modname]
105 def _save_and_block_module(name, orig_modules): argument
111 orig_modules[name] = sys.modules[name]
136 orig_modules = {}
138 _save_and_remove_module(name, orig_modules)
141 _save_and_remove_module(fresh_name, orig_modules)
143 if not _save_and_block_module(blocked_name, orig_modules):
149 for orig_name, module in orig_modules.items():
/external/python/cpython3/Lib/test/support/
D__init__.py165 def _save_and_remove_module(name, orig_modules): argument
176 orig_modules[modname] = sys.modules[modname]
179 def _save_and_block_module(name, orig_modules): argument
186 orig_modules[name] = sys.modules[name]
253 orig_modules = {}
255 _save_and_remove_module(name, orig_modules)
258 _save_and_remove_module(fresh_name, orig_modules)
260 if not _save_and_block_module(blocked_name, orig_modules):
266 for orig_name, module in orig_modules.items():