1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-13 05:43:53 -05:00

fix possible side effect

This commit is contained in:
Ivan Pozdeev
2021-09-15 22:55:09 +03:00
parent 7f45f1eb9d
commit cabdc45181

View File

@@ -26,11 +26,10 @@ load test_helper
#Arch has Python at sbin as well as bin
@test "prefix for sbin system" {
export PATH="${PYENV_TEST_DIR}/sbin:$PATH"
mkdir -p "${PYENV_TEST_DIR}/sbin"
touch "${PYENV_TEST_DIR}/sbin/python"
chmod +x "${PYENV_TEST_DIR}/sbin/python"
PYENV_VERSION="system" run pyenv-prefix
PATH="${PYENV_TEST_DIR}/sbin:$PATH" PYENV_VERSION="system" run pyenv-prefix
assert_success "$PYENV_TEST_DIR"
}