File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ def main(args: Namespace | None = None) -> ArgumentParser:
203203 if outfile :
204204 outfile .unlink (missing_ok = True )
205205 for replay_test_path in replay_test_paths :
206- replay_test_path .unlink (missing_ok = True )
206+ Path ( replay_test_path ) .unlink (missing_ok = True )
207207
208208 except BrokenPipeError as exc :
209209 # Prevent "Exception ignored" during interpreter shutdown.
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ def pytest_split(
1111 """Split pytest test files from a directory into N roughly equal groups for parallel execution.
1212
1313 Args:
14+ arguments: List of arguments passed to pytest
1415 test_directory: Path to directory containing test files
1516 num_splits: Number of groups to split tests into. If None, uses CPU count.
1617
@@ -40,8 +41,7 @@ def pytest_split(
4041 return None , None
4142 if _test_path .is_dir ():
4243 # Find all test files matching the pattern test_*.py
43- for test_file in _test_path .rglob ("test_*.py" ):
44- test_files .append (str (test_file ))
44+ test_files .extend (map (str , _test_path .rglob ("test_*.py" )))
4545 elif _test_path .is_file ():
4646 test_files .append (str (_test_path ))
4747
You can’t perform that action at this time.
0 commit comments