Lines Matching refs:orig_modules
88 def _save_and_remove_module(name, orig_modules):
98 orig_modules[modname] = sys.modules[modname]
101 def _save_and_block_module(name, orig_modules):
107 orig_modules[name] = sys.modules[name]
132 orig_modules = {}
134 _save_and_remove_module(name, orig_modules)
137 _save_and_remove_module(fresh_name, orig_modules)
139 if not _save_and_block_module(blocked_name, orig_modules):
145 for orig_name, module in orig_modules.items():