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__.py185 def _save_and_remove_module(name, orig_modules): argument
196 orig_modules[modname] = sys.modules[modname]
199 def _save_and_block_module(name, orig_modules): argument
206 orig_modules[name] = sys.modules[name]
273 orig_modules = {}
275 _save_and_remove_module(name, orig_modules)
278 _save_and_remove_module(fresh_name, orig_modules)
280 if not _save_and_block_module(blocked_name, orig_modules):
286 for orig_name, module in orig_modules.items():