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

Function resolve_test_path

scripts/update_lib/file_utils.py:178–182  ·  view source on GitHub ↗

Resolve a test module path under Lib/test/.

(
    test_name: str, prefix: str = "cpython", prefer: str = "dir"
)

Source from the content-addressed store, hash-verified

176
177
178def resolve_test_path(
179 test_name: str, prefix: str = "cpython", prefer: str = "dir"
180) -> pathlib.Path:
181 """Resolve a test module path under Lib/test/."""
182 return resolve_module_path(f"test/{test_name}", prefix, prefer=prefer)
183
184
185def cpython_to_local_path(

Callers 1

_get_cpython_test_pathFunction · 0.90

Calls 1

resolve_module_pathFunction · 0.85

Tested by

no test coverage detected