From 9a861cd0abb03d712976f019bf8b0579f1f0db5c Mon Sep 17 00:00:00 2001 From: ethernet Date: Tue, 23 Jun 2026 20:14:31 -0400 Subject: [PATCH] change(tests): don't pass pytest args when counting tests --- scripts/run_tests_parallel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/run_tests_parallel.py b/scripts/run_tests_parallel.py index 354d167d57a..0b9a227a145 100755 --- a/scripts/run_tests_parallel.py +++ b/scripts/run_tests_parallel.py @@ -81,7 +81,7 @@ _DURATIONS_FILE = "test_durations.json" def _count_tests( - files: List[Path], repo_root: Path, pytest_passthrough: List[str] + files: List[Path], repo_root: Path ) -> dict[Path, int]: """Run ``pytest --co -q`` once to count individual tests per file. @@ -113,7 +113,6 @@ def _count_tests( "--co", "-q", *ignore_args, *[str(f) for f in files], - *pytest_passthrough, ] try: result = subprocess.run( @@ -697,7 +696,7 @@ def main() -> int: return 1 # Count individual tests per file via a single pytest --co pass. - test_counts = _count_tests(files, repo_root, pytest_passthrough) + test_counts = _count_tests(files, repo_root) total_tests = sum(test_counts.values()) # Apply slicing if requested — distribute files across CI jobs by