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

Method tearDown

IPython/extensions/tests/test_deduperreload.py:744–752  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

742 self.shell = FakeShell()
743
744 def tearDown(self):
745 for mod_name in self.created_temp_modules:
746 sys.modules.pop(mod_name, None)
747 shutil.rmtree(self.test_dir)
748 sys.path = self.old_sys_path
749
750 self.test_dir = None
751 self.old_sys_path = None
752 self.shell = None
753
754 def get_module(self):
755 module_name = "tmpmod_" + "".join(random.sample(self.filename_chars, 20))

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected