Merge pull request #1364 from minrk/pipes

update import of shlex.quote
pull/1365/head
Simon Li 2024-08-08 14:09:42 +01:00 zatwierdzone przez GitHub
commit afaa6e39f5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -17,7 +17,6 @@ Test lifecycle:
"""
import os
import pipes
import shlex
import subprocess
import time
@ -218,7 +217,7 @@ class Repo2DockerTest(pytest.Function):
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)