mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
fix possible side effect
This commit is contained in:
parent
7f45f1eb9d
commit
cabdc45181
1 changed files with 1 additions and 2 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue