diff --git a/tests/conftest.py b/tests/conftest.py index 76f14c80..bade0a1a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -17,7 +17,6 @@ """ import os -import pipes import shlex import subprocess import time @@ -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)