mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Don't use subprocess.run features from 3.7
This commit is contained in:
@@ -115,7 +115,7 @@ def test_serverextensions():
|
|||||||
proc = subprocess.run([
|
proc = subprocess.run([
|
||||||
'/opt/tljh/user/bin/jupyter-serverextensions',
|
'/opt/tljh/user/bin/jupyter-serverextensions',
|
||||||
'list', '--sys-prefix'
|
'list', '--sys-prefix'
|
||||||
], capture_output=True, universal_newlines=True)
|
], stderr=subprocess.PIPE)
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'jupyterlab 0.32.1',
|
'jupyterlab 0.32.1',
|
||||||
@@ -125,4 +125,4 @@ def test_serverextensions():
|
|||||||
]
|
]
|
||||||
|
|
||||||
for e in extensions:
|
for e in extensions:
|
||||||
assert '{} ^[[32mOK^[[0m' in e.stderr
|
assert '{} ^[[32mOK^[[0m' in e.stderr.decode()
|
||||||
|
|||||||
Reference in New Issue
Block a user