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

Function _get_cpython_test_path

scripts/update_lib/deps.py:165–168  ·  view source on GitHub ↗

Return the CPython test path for a test name, or None if missing.

(test_name: str, cpython_prefix: str)

Source from the content-addressed store, hash-verified

163
164
165def _get_cpython_test_path(test_name: str, cpython_prefix: str) -> pathlib.Path | None:
166 """Return the CPython test path for a test name, or None if missing."""
167 cpython_path = resolve_test_path(test_name, cpython_prefix, prefer="dir")
168 return cpython_path if cpython_path.exists() else None
169
170
171def _get_local_test_path(

Callers 3

is_test_trackedFunction · 0.85
is_test_up_to_dateFunction · 0.85
get_test_last_updatedFunction · 0.85

Calls 2

resolve_test_pathFunction · 0.90
existsMethod · 0.45

Tested by

no test coverage detected