1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-17 15:53:45 -05:00

Modify applications and versions for Python

This commit is contained in:
Yamashita Yuu
2014-01-03 04:38:29 +09:00
parent 3dd9332eee
commit 319721b380
10 changed files with 145 additions and 145 deletions

View File

@@ -18,21 +18,21 @@ setup() {
}
@test "set by PYENV_VERSION" {
create_version "1.9.3"
PYENV_VERSION=1.9.3 run pyenv-version
assert_success "1.9.3 (set by PYENV_VERSION environment variable)"
create_version "3.3.3"
PYENV_VERSION=3.3.3 run pyenv-version
assert_success "3.3.3 (set by PYENV_VERSION environment variable)"
}
@test "set by local file" {
create_version "1.9.3"
cat > ".python-version" <<<"1.9.3"
create_version "3.3.3"
cat > ".python-version" <<<"3.3.3"
run pyenv-version
assert_success "1.9.3 (set by ${PWD}/.python-version)"
assert_success "3.3.3 (set by ${PWD}/.python-version)"
}
@test "set by global file" {
create_version "1.9.3"
cat > "${PYENV_ROOT}/version" <<<"1.9.3"
create_version "3.3.3"
cat > "${PYENV_ROOT}/version" <<<"3.3.3"
run pyenv-version
assert_success "1.9.3 (set by ${PYENV_ROOT}/version)"
assert_success "3.3.3 (set by ${PYENV_ROOT}/version)"
}