MCPcopy Index your code
hub / github.com/python/cpython / remove

Method remove

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

Source from the content-addressed store, hash-verified

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

Callers 15

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

Calls 2

clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected