1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 12:33:48 -05:00

Revert "Drop inferring version to install from pyenv local"

This commit is contained in:
native-api
2021-06-14 17:08:46 +03:00
committed by GitHub
parent 1706436fae
commit e154693dc6
2 changed files with 16 additions and 0 deletions

View File

@@ -23,6 +23,17 @@ stub_python_build() {
unstub pyenv-rehash
}
@test "install pyenv local version by default" {
stub_python_build 'echo python-build "$1"'
stub pyenv-local 'echo 3.4.2'
run pyenv-install
assert_success "python-build 3.4.2"
unstub python-build
unstub pyenv-local
}
@test "list available versions" {
stub_python_build \
"--definitions : echo 2.6.9 2.7.9-rc1 2.7.9-rc2 3.4.2 | tr ' ' $'\\n'"