HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/thread-self/root/usr/local/share/python/pyenv/test/pyenv_ext.bats
#!/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}"
}