Skip to content

Commit b793971

Browse files
committed
Honour upstream check= kwarg in subprocess.run .
1 parent ab32be1 commit b793971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/bm_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _subprocess_run_print(args, **kwargs):
3636
# Use subprocess for printing to reduce chance of printing out of sequence
3737
# with the subsequent calls.
3838
subprocess.run(["echo", f"BM_RUNNER DEBUG: {' '.join(args)}"])
39-
kwargs["check"] = True
39+
kwargs.setdefault("check", True)
4040
return subprocess.run(args, **kwargs)
4141

4242

0 commit comments

Comments
 (0)