1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 23:33:45 -05:00

Fix pyenv-latest to ignore virtualenvs (#2608)

* Add test, exclude alphas as well
This commit is contained in:
native-api
2023-02-02 15:15:16 +03:00
committed by GitHub
parent 76e93b073e
commit 368e04f3fa
2 changed files with 21 additions and 1 deletions

View File

@@ -93,3 +93,22 @@ echo 3.10.6
3.10.8
!
}
@test "ignores rolling releases, branch tips, alternative srcs, prereleases and virtualenvs" {
create_executable pyenv-versions <<!
#!$BASH
echo 3.8.5-dev
echo 3.8.5-src
echo 3.8.5-latest
echo 3.8.5a2
echo 3.8.5b3
echo 3.8.5rc2
echo 3.8.1
echo 3.8.1/envs/foo
!
run pyenv-latest 3.8
assert_success
assert_output <<!
3.8.1
!
}