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

Method test_import

Lib/test/test_pickle.py:703–712  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

701
702class CompatPickleTests(unittest.TestCase):
703 def test_import(self):
704 modules = set(IMPORT_MAPPING.values())
705 modules |= set(REVERSE_IMPORT_MAPPING)
706 modules |= {module for module, name in REVERSE_NAME_MAPPING}
707 modules |= {module for module, name in NAME_MAPPING.values()}
708 for module in modules:
709 try:
710 getmodule(module)
711 except ImportError:
712 pass
713
714 def test_import_mapping(self):
715 for module3, module2 in REVERSE_IMPORT_MAPPING.items():

Callers

nothing calls this directly

Calls 3

setFunction · 0.85
getmoduleFunction · 0.70
valuesMethod · 0.45

Tested by

no test coverage detected