MCPcopy
hub / github.com/pex-tool/pex / minimum_sys_modules

Function minimum_sys_modules

tests/test_pex.py:142–150  ·  view source on GitHub ↗
(
        sys_path=(),  # type: Iterable[str]
        site_libs=(),  # type: Iterable[str]
        modules=None,  # type: Optional[Mapping[str, ModuleType]]
    )

Source from the content-addressed store, hash-verified

140 # type: () -> None
141
142 def minimum_sys_modules(
143 sys_path=(), # type: Iterable[str]
144 site_libs=(), # type: Iterable[str]
145 modules=None, # type: Optional[Mapping[str, ModuleType]]
146 ):
147 # type: (...) -> Mapping[str, ModuleType]
148 return PEX.minimum_sys_modules(
149 IsolatedSysPath(sys_path=sys_path, site_packages=site_libs), modules=modules
150 )
151
152 # tainted modules evict
153 tainted_module = ModuleType("tainted_module")

Callers 1

test_minimum_sys_modulesFunction · 0.85

Calls 2

IsolatedSysPathClass · 0.90
minimum_sys_modulesMethod · 0.80

Tested by

no test coverage detected