MCPcopy Create free account
hub / github.com/ipython/ipython / get_module

Method get_module

IPython/extensions/tests/test_autoreload.py:87–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

85 self.shell = None
86
87 def get_module(self):
88 module_name = "tmpmod_" + "".join(random.sample(self.filename_chars,20))
89 if module_name in sys.modules:
90 del sys.modules[module_name]
91 file_name = os.path.join(self.test_dir, module_name + ".py")
92 return module_name, file_name
93
94 def write_file(self, filename, content):
95 """

Callers 1

new_moduleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected