Skip to content

Commit

Permalink
Avoid permanent modifications in _subprocess_runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
trexfeathers committed Aug 18, 2023
1 parent 2c8019b commit 9698862
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benchmarks/bm_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def echo(echo_string: str):


def _subprocess_runner(args, asv=False, **kwargs):
# Avoid permanent modifications if the same arguments are used more than once.
args = args.copy()
kwargs = kwargs.copy()
if asv:
args.insert(0, "asv")
kwargs["cwd"] = BENCHMARKS_DIR
Expand Down

0 comments on commit 9698862

Please sign in to comment.