Skip to content

Commit 7af1938

Browse files
committed
Fix --same-loops handling so it doesn't accumulate --loops arguments in the
pyperf args.
1 parent 56d12a8 commit 7af1938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyperformance/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def add_bench(dest_suite, obj):
159159
return dest_suite
160160

161161
if name in loops:
162-
pyperf_opts.append(f"--loops={loops[name]}")
162+
pyperf_opts = [*pyperf_opts, f"--loops={loops[name]}"]
163163

164164
bench_venv, bench_runid = benchmarks.get(bench)
165165
if bench_venv is None:

0 commit comments

Comments
 (0)