Skip to content

Commit 0fa221b

Browse files
committed
More shlex
1 parent eea0a12 commit 0fa221b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_dtrace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def run_readelf(cmd):
9393

9494
if proc.returncode:
9595
raise AssertionError(
96-
f"Command {' '.join(cmd)!r} failed "
96+
f"Command {shlex.join(cmd)!r} failed "
9797
f"with exit code {proc.returncode}: "
9898
f"stdout={stdout!r} stderr={stderr!r}"
9999
)
@@ -140,7 +140,7 @@ def trace(self, script_file, subcommand=None, *, timeout=None,
140140
raise
141141
if check_returncode and proc.returncode:
142142
raise AssertionError(
143-
f"Command {' '.join(command)!r} failed "
143+
f"Command {shlex.join(command)!r} failed "
144144
f"with exit code {proc.returncode}: output={stdout!r}"
145145
)
146146
return stdout

0 commit comments

Comments
 (0)