mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
decode instead of capture_text
This commit is contained in:
@@ -9,11 +9,11 @@ def test_serverextensions():
|
|||||||
# jupyter-serverextension writes to stdout and stderr weirdly
|
# jupyter-serverextension writes to stdout and stderr weirdly
|
||||||
proc = subprocess.run(
|
proc = subprocess.run(
|
||||||
["/opt/tljh/user/bin/jupyter-server", "extension", "list", "--sys-prefix"],
|
["/opt/tljh/user/bin/jupyter-server", "extension", "list", "--sys-prefix"],
|
||||||
capture_output=True,
|
stdout=subprocess.PIPE,
|
||||||
text=True,
|
stderr=subprocess.STDOUT,
|
||||||
)
|
)
|
||||||
|
|
||||||
output = proc.stdout + proc.stderr
|
output = proc.stdout.decode()
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
"jupyterlab",
|
"jupyterlab",
|
||||||
|
|||||||
Reference in New Issue
Block a user