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

Speed up pyenv prefix by not constructing advice text when it would be discarded (#3005)

by adding an internal flag
This commit is contained in:
Jon Crall
2024-07-03 20:49:12 -04:00
committed by GitHub
parent 384361167a
commit 672eef1561
4 changed files with 53 additions and 25 deletions

View File

@@ -155,3 +155,15 @@ exit
PYENV_VERSION=3.4 run pyenv-which python
assert_success "version=3.4.2"
}
@test "skip advice supresses error messages" {
create_executable "2.7" "python"
create_executable "3.3" "py.test"
create_executable "3.4" "py.test"
PYENV_VERSION=2.7 run pyenv-which py.test --skip-advice
assert_failure
assert_output <<OUT
pyenv: py.test: command not found
OUT
}