Skip to content

Commit afaa6e3

Browse files
authored
Merge pull request #1364 from minrk/pipes
update import of shlex.quote
2 parents 388c934 + 2f2fa48 commit afaa6e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"""
1818

1919
import os
20-
import pipes
2120
import shlex
2221
import subprocess
2322
import time
@@ -218,7 +217,7 @@ def reportinfo(self):
218217
def repr_failure(self, excinfo):
219218
err = excinfo.value
220219
if isinstance(err, SystemExit):
221-
cmd = f'jupyter-repo2docker {" ".join(map(pipes.quote, self.args))}'
220+
cmd = f'jupyter-repo2docker {" ".join(map(shlex.quote, self.args))}'
222221
return f"{cmd} | exited with status={err.code}"
223222
else:
224223
return super().repr_failure(excinfo)

0 commit comments

Comments
 (0)