Skip to content

Commit 6179ac7

Browse files
committed
Reflect pyenv-latest switch change in 2.4.8
1 parent b90bd92 commit 6179ac7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/pyenv-virtualenv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ else
317317
fi
318318

319319
if [[ -n "${VERSION_NAME}" ]] && command -v pyenv-latest >/dev/null; then
320-
VERSION_NAME="$(pyenv-latest -q "${VERSION_NAME}" || echo "${VERSION_NAME}")"
320+
VERSION_NAME="$(pyenv-latest -f "${VERSION_NAME}")"
321321
fi
322322

323323
if [ -z "${VERSION_NAME}" ] || [ -z "${VIRTUALENV_NAME}" ]; then

test/virtualenv.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ OUT
6565
stub pyenv-exec "python -s -m ensurepip : false"
6666
stub pyenv-exec "python -s */get-pip.py : true"
6767
stub curl true
68-
stub pyenv-latest "-q 2.7 : echo 2.7.11"
68+
stub pyenv-latest "-f 2.7 : echo 2.7.11"
6969

7070
run pyenv-virtualenv "2.7" "venv"
7171

0 commit comments

Comments
 (0)