Skip to content

Commit

Permalink
Merge pull request #1364 from minrk/pipes
Browse files Browse the repository at this point in the history
update import of shlex.quote
  • Loading branch information
manics authored Aug 8, 2024
2 parents 388c934 + 2f2fa48 commit afaa6e3
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 afaa6e3

Please sign in to comment.