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

Make work in nounset (-u) mode

This commit is contained in:
Ville Skyttä
2021-01-16 14:38:31 +02:00
parent 3fbbc155c7
commit f06fb60b1f
2 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ load test_helper
PYENV_SHELL=bash run pyenv-sh-shell --unset
assert_success
assert_output <<OUT
PYENV_VERSION_OLD="\$PYENV_VERSION"
PYENV_VERSION_OLD="\${PYENV_VERSION-}"
unset PYENV_VERSION
OUT
}
@@ -75,7 +75,7 @@ SH
PYENV_SHELL=bash run pyenv-sh-shell 1.2.3
assert_success
assert_output <<OUT
PYENV_VERSION_OLD="\$PYENV_VERSION"
PYENV_VERSION_OLD="\${PYENV_VERSION-}"
export PYENV_VERSION="1.2.3"
OUT
}