(self)
| 3244 | sys.meta_path.append(self.importer) |
| 3245 | |
| 3246 | def remove(self): |
| 3247 | sys.path[:] = self.sys_path |
| 3248 | sys.meta_path[:] = self.meta_path |
| 3249 | sys.path_hooks[:] = self.path_hooks |
| 3250 | sys.path_importer_cache.clear() |
| 3251 | sys.modules.clear() |
| 3252 | sys.modules.update(self.modules_before) |
| 3253 | |
| 3254 | |
| 3255 | @contextlib.contextmanager |
no test coverage detected