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

Method tearDown

Lib/test/test_import/__init__.py:1375–1383  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1373 importlib.invalidate_caches()
1374
1375 def tearDown(self):
1376 sys.path[:] = self.sys_path
1377 if self.orig_module is not None:
1378 sys.modules[self.module_name] = self.orig_module
1379 else:
1380 unload(self.module_name)
1381 unlink(self.file_name)
1382 unlink(self.compiled_name)
1383 rmtree(self.dir_name)
1384
1385 def import_module(self):
1386 ns = globals()

Callers

nothing calls this directly

Calls 3

unloadFunction · 0.90
rmtreeFunction · 0.90
unlinkFunction · 0.85

Tested by

no test coverage detected