mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-29 03:22:54 -05:00
e44490c639
This reverts commit 438e828eb5
.
# Conflicts:
# test/pyenv_ext.bats
14 lines
451 B
Bash
14 lines
451 B
Bash
#!/usr/bin/env bats
|
|
|
|
load test_helper
|
|
|
|
@test "prefixes" {
|
|
mkdir -p "${PYENV_TEST_DIR}/bin"
|
|
touch "${PYENV_TEST_DIR}/bin/python"
|
|
chmod +x "${PYENV_TEST_DIR}/bin/python"
|
|
mkdir -p "${PYENV_ROOT}/versions/2.7.10"
|
|
PYENV_VERSION="system:2.7.10" run pyenv-prefix
|
|
assert_success "${PYENV_TEST_DIR}:${PYENV_ROOT}/versions/2.7.10"
|
|
PYENV_VERSION="2.7.10:system" run pyenv-prefix
|
|
assert_success "${PYENV_ROOT}/versions/2.7.10:${PYENV_TEST_DIR}"
|
|
}
|