Install virtualenv 13.1.2 for CPython 3.2 (yyuu/pyenv#531)

This commit is contained in:
Yamashita, Yuu
2016-01-30 04:34:23 +00:00
parent 51ebc8ff8a
commit 1f761275cd
8 changed files with 140 additions and 129 deletions

View File

@@ -13,22 +13,22 @@ setup() {
before_virtualenv 'echo before: \$VIRTUALENV_PATH'
after_virtualenv 'echo after: \$STATUS'
OUT
setup_version "3.2.1"
create_executable "3.2.1" "virtualenv"
stub pyenv-prefix "echo '${PYENV_ROOT}/versions/3.2.1'"
stub pyenv-prefix "echo '${PYENV_ROOT}/versions/3.2.1'"
setup_version "3.5.1"
create_executable "3.5.1" "virtualenv"
stub pyenv-prefix "echo '${PYENV_ROOT}/versions/3.5.1'"
stub pyenv-prefix "echo '${PYENV_ROOT}/versions/3.5.1'"
stub pyenv-hooks "virtualenv : echo '$HOOK_PATH'/virtualenv.bash"
stub pyenv-exec "echo PYENV_VERSION=3.2.1 \"\$@\""
stub pyenv-exec "echo PYENV_VERSION=3.2.1 \"\$@\""
stub pyenv-exec "echo PYENV_VERSION=3.5.1 \"\$@\""
stub pyenv-exec "echo PYENV_VERSION=3.5.1 \"\$@\""
stub pyenv-rehash "echo rehashed"
run pyenv-virtualenv "3.2.1" venv
run pyenv-virtualenv "3.5.1" venv
assert_success
assert_output <<-OUT
before: ${PYENV_ROOT}/versions/3.2.1/envs/venv
PYENV_VERSION=3.2.1 virtualenv ${PYENV_ROOT}/versions/3.2.1/envs/venv
PYENV_VERSION=3.2.1 python -s -m ensurepip
before: ${PYENV_ROOT}/versions/3.5.1/envs/venv
PYENV_VERSION=3.5.1 virtualenv ${PYENV_ROOT}/versions/3.5.1/envs/venv
PYENV_VERSION=3.5.1 python -s -m ensurepip
after: 0
rehashed
OUT
@@ -37,5 +37,5 @@ OUT
unstub pyenv-hooks
unstub pyenv-exec
unstub pyenv-rehash
teardown_version "3.2.1"
teardown_version "3.5.1"
}