MCPcopy Index your code
hub / github.com/RustPython/RustPython / remove

Method remove

Lib/test/test_doctest/test_doctest.py:3146–3152  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 15

test_hookFunction · 0.95
setUpMethod · 0.45
tearDownMethod · 0.45
rewrite_fileMethod · 0.45
test_method_calledMethod · 0.45
install_finderFunction · 0.45
add_sys_pathMethod · 0.45
test_iterdirMethod · 0.45

Calls 2

clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected