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

Method remove_modules

Lib/test/test_importlib/test_pkg_import.py:21–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 unittest.TestCase.__init__(self, *args, **kw)
20
21 def remove_modules(self):
22 for module_name in (self.package_name, self.module_name):
23 if module_name in sys.modules:
24 del sys.modules[module_name]
25
26 def setUp(self):
27 self.test_dir = tempfile.mkdtemp()

Callers 1

tearDownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected