Skip to content

Commit d88a4fd

Browse files
committed
Fix benchmark master worker id shadowing.
1 parent c3c2ec0 commit d88a4fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_rigid_benchmarks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ def stream_writers(backend, printer_session):
225225
worker_count = int(os.environ["PYTEST_XDIST_WORKER_COUNT"])
226226

227227
for path in report_path.parent.glob("-".join((report_path.stem, "*.txt"))):
228-
_, worker_id = path.stem.rsplit("-", 1)
229-
worker_num = int(worker_id[2:])
228+
_, worker_id_ = path.stem.rsplit("-", 1)
229+
worker_num = int(worker_id_[2:])
230230
if worker_num >= worker_count:
231231
path.unlink()
232232

0 commit comments

Comments
 (0)