mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-17 07:43:46 -05:00
Fix pyenv-latest to ignore virtualenvs (#2608)
* Add test, exclude alphas as well
This commit is contained in:
@@ -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
|
||||
!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user