(self)
| 3144 | sys.meta_path.append(self.importer) |
| 3145 | |
| 3146 | def remove(self): |
| 3147 | sys.path[:] = self.sys_path |
| 3148 | sys.meta_path[:] = self.meta_path |
| 3149 | sys.path_hooks[:] = self.path_hooks |
| 3150 | sys.path_importer_cache.clear() |
| 3151 | sys.modules.clear() |
| 3152 | sys.modules.update(self.modules_before) |
| 3153 | |
| 3154 | |
| 3155 | @contextlib.contextmanager |
no test coverage detected