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

Method import_module

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

Source from the content-addressed store, hash-verified

1383 rmtree(self.dir_name)
1384
1385 def import_module(self):
1386 ns = globals()
1387 __import__(self.module_name, ns, ns)
1388 return sys.modules[self.module_name]
1389
1390 def test_basics(self):
1391 mod = self.import_module()

Callers 15

test_basicsMethod · 0.95
test_foreign_codeMethod · 0.95
_get_sysconfigdataFunction · 0.45
test_wmi.pyFile · 0.45
test_half_floatMethod · 0.45
test_syslog.pyFile · 0.45
set_breakMethod · 0.45
test_name_resolutionMethod · 0.45

Calls 2

globalsFunction · 0.85
__import__Function · 0.50

Tested by 15

test_basicsMethod · 0.76
test_foreign_codeMethod · 0.76
test_half_floatMethod · 0.36
set_breakMethod · 0.36
test_name_resolutionMethod · 0.36
test_iter_importersMethod · 0.36
test_newemptyMethod · 0.36