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

Method test_imports

scripts/update_lib/deps.py:39–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37
38 @property
39 def test_imports(self) -> set[str]:
40 imports = set()
41 for module in self.__imports:
42 if not module.startswith("test."):
43 continue
44 name = module.removeprefix("test.")
45
46 if name == "support" or name.startswith("support."):
47 continue
48
49 imports.add(name)
50
51 return imports
52
53 @property
54 def lib_imports(self) -> set[str]:

Callers

nothing calls this directly

Calls 4

setFunction · 0.85
startswithMethod · 0.45
removeprefixMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected