kopia lustrzana https://github.com/jupyterhub/repo2docker
update test expectations in py35/py36 tests
`/usr/bin/env python` is no longer the kernel pythonpull/1239/head
rodzic
0f328e67e7
commit
5f6d76764b
|
@ -1,17 +1,28 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
from subprocess import check_output
|
from subprocess import STDOUT, check_output
|
||||||
|
|
||||||
assert sys.version_info[:2] == (3, 5), sys.version
|
assert sys.version_info[:2] == (3, 7), sys.version
|
||||||
|
|
||||||
out = check_output(["micromamba", "--version"]).decode("utf8").strip()
|
|
||||||
|
def sh(cmd, **kwargs):
|
||||||
|
return check_output(cmd, **kwargs).decode("utf8").strip()
|
||||||
|
|
||||||
|
|
||||||
|
kernel_python = os.path.join(os.environ["KERNEL_PYTHON_PREFIX"], "bin", "python")
|
||||||
|
out = sh([kernel_python, "--version"], stderr=STDOUT)
|
||||||
|
v = out.split()[1]
|
||||||
|
assert v[:3] == "3.5", out
|
||||||
|
|
||||||
|
out = sh(["micromamba", "--version"])
|
||||||
assert out == "1.1.0", out
|
assert out == "1.1.0", out
|
||||||
|
|
||||||
out = check_output(["mamba", "--version"]).decode("utf8").strip()
|
out = sh(["mamba", "--version"])
|
||||||
assert (
|
assert (
|
||||||
out
|
out
|
||||||
== """mamba 1.1.0
|
== """mamba 1.1.0
|
||||||
conda 4.13.0"""
|
conda 4.13.0"""
|
||||||
), out
|
), out
|
||||||
|
|
||||||
import numpy
|
sh([kernel_python, "-c", "import numpy"])
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
# Zenodo record of https://github.com/binder-examples/requirements
|
# Zenodo record of https://github.com/binder-examples/requirements
|
||||||
- name: 10.5281/zenodo.3242074
|
- name: 10.5281/zenodo.3242074
|
||||||
url: 10.5281/zenodo.3242074
|
url: 10.5281/zenodo.3242074
|
||||||
verify: python -c 'import matplotlib'
|
verify: /srv/conda/envs/kernel/bin/python -c 'import matplotlib'
|
||||||
# Test that files in git-lfs are properly cloned
|
# Test that files in git-lfs are properly cloned
|
||||||
- name: LFS
|
- name: LFS
|
||||||
url: https://github.com/binderhub-ci-repos/lfs
|
url: https://github.com/binderhub-ci-repos/lfs
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/srv/conda/envs/kernel/bin/python
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import pypi_pkg_test
|
|
||||||
import there
|
|
||||||
|
|
||||||
print(sys.version_info)
|
print(sys.version_info)
|
||||||
assert sys.version_info[:2] == (3, 6)
|
assert sys.version_info[:2] == (3, 6)
|
||||||
|
|
||||||
|
import pypi_pkg_test # noqa
|
||||||
|
import there # noqa
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python3
|
#!/srv/conda/envs/kernel/bin/python
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
print(sys.version_info)
|
print(sys.version_info)
|
||||||
|
|
Ładowanie…
Reference in New Issue