Skip to content

Commit

Permalink
update import of shlex.quote
Browse files Browse the repository at this point in the history
hasn't been pipes.quote since 3.3
  • Loading branch information
minrk committed Aug 8, 2024
1 parent 388c934 commit 2f2fa48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"""

import os
import pipes
import shlex
import subprocess
import time
Expand Down Expand Up @@ -218,7 +217,7 @@ def reportinfo(self):
def repr_failure(self, excinfo):
err = excinfo.value
if isinstance(err, SystemExit):
cmd = f'jupyter-repo2docker {" ".join(map(pipes.quote, self.args))}'
cmd = f'jupyter-repo2docker {" ".join(map(shlex.quote, self.args))}'
return f"{cmd} | exited with status={err.code}"
else:
return super().repr_failure(excinfo)
Expand Down

0 comments on commit 2f2fa48

Please sign in to comment.