kopia lustrzana https://github.com/jupyterhub/repo2docker
commit
afaa6e39f5
|
@ -17,7 +17,6 @@ Test lifecycle:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import pipes
|
|
||||||
import shlex
|
import shlex
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
|
@ -218,7 +217,7 @@ class Repo2DockerTest(pytest.Function):
|
||||||
def repr_failure(self, excinfo):
|
def repr_failure(self, excinfo):
|
||||||
err = excinfo.value
|
err = excinfo.value
|
||||||
if isinstance(err, SystemExit):
|
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}"
|
return f"{cmd} | exited with status={err.code}"
|
||||||
else:
|
else:
|
||||||
return super().repr_failure(excinfo)
|
return super().repr_failure(excinfo)
|
||||||
|
|
Ładowanie…
Reference in New Issue