From 2f2fa483ebdb6002dd8a222c7116bcf4d8827da3 Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 8 Aug 2024 13:51:33 +0200 Subject: [PATCH] update import of shlex.quote hasn't been pipes.quote since 3.3 --- tests/conftest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)