mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 13:53:53 -05:00
fix possible side effect
This commit is contained in:
@@ -26,11 +26,10 @@ load test_helper
|
|||||||
|
|
||||||
#Arch has Python at sbin as well as bin
|
#Arch has Python at sbin as well as bin
|
||||||
@test "prefix for sbin system" {
|
@test "prefix for sbin system" {
|
||||||
export PATH="${PYENV_TEST_DIR}/sbin:$PATH"
|
|
||||||
mkdir -p "${PYENV_TEST_DIR}/sbin"
|
mkdir -p "${PYENV_TEST_DIR}/sbin"
|
||||||
touch "${PYENV_TEST_DIR}/sbin/python"
|
touch "${PYENV_TEST_DIR}/sbin/python"
|
||||||
chmod +x "${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"
|
assert_success "$PYENV_TEST_DIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user