MCPcopy
hub / github.com/astral-sh/python-build-standalone / run_stdlib_tests

Function run_stdlib_tests

pythonbuild/testdist.py:66–78  ·  view source on GitHub ↗

Run Python stdlib tests for a PBS distribution. The passed path is the `python` directory from the extracted distribution archive.

(dist_root: Path, python_info, harness_args: list[str])

Source from the content-addressed store, hash-verified

64
65
66def run_stdlib_tests(dist_root: Path, python_info, harness_args: list[str]) -> int:
67 """Run Python stdlib tests for a PBS distribution.
68
69 The passed path is the `python` directory from the extracted distribution
70 archive.
71 """
72 args = [
73 str(dist_root / python_info["run_tests"]),
74 ]
75
76 args.extend(harness_args)
77
78 return run_dist_python(dist_root, python_info, args).returncode
79
80
81def main(pbs_source_dir: Path, raw_args: list[str]) -> int:

Callers 1

mainFunction · 0.85

Calls 1

run_dist_pythonFunction · 0.85

Tested by

no test coverage detected