Skip to content

Commit 78519ee

Browse files
committed
bugfix
1 parent 0e7834e commit 78519ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

codeflash/tracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

codeflash/tracing/pytest_parallelization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)