mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
add test
This commit is contained in:
parent
6711ed93da
commit
d60159b4c3
|
|
@ -33,6 +33,9 @@ unstub_pyenv() {
|
|||
stub pyenv-exec "python -s -m ensurepip : false"
|
||||
stub pyenv-exec "python -s */get-pip.py : true"
|
||||
stub curl true
|
||||
create_executable "${PYENV_VERSION}" "python-config"
|
||||
create_executable "${PYENV_VERSION}" "python2-config"
|
||||
create_executable "${PYENV_VERSION}" "python2.7-config"
|
||||
|
||||
run pyenv-virtualenv "2.7.11" "venv"
|
||||
|
||||
|
|
@ -41,8 +44,10 @@ PYENV_VERSION=2.7.11 virtualenv ${PYENV_ROOT}/versions/2.7.11/envs/venv
|
|||
Installing pip from https://bootstrap.pypa.io/pip/2.7/get-pip.py...
|
||||
rehashed
|
||||
OUT
|
||||
assert [ -x "${PYENV_ROOT}/versions/2.7.11/envs/venv/bin/pydoc" ]
|
||||
assert_success
|
||||
for x in pydoc python-config python2-config python2.7-config; do
|
||||
assert [[ -x "${PYENV_ROOT}/versions/2.7.11/envs/venv/bin/$x" ]]
|
||||
done
|
||||
|
||||
unstub_pyenv
|
||||
unstub pyenv-virtualenv-prefix
|
||||
|
|
|
|||
Loading…
Reference in a new issue