diff --git a/test/virtualenv.bats b/test/virtualenv.bats index f297916..c54268e 100644 --- a/test/virtualenv.bats +++ b/test/virtualenv.bats @@ -33,6 +33,9 @@ unstub_pyenv() { stub pyenv-exec "python -s -m ensurepip : false" stub pyenv-exec "python -s */get-pip.py : true" stub curl true + create_executable "${PYENV_VERSION}" "python-config" + create_executable "${PYENV_VERSION}" "python2-config" + create_executable "${PYENV_VERSION}" "python2.7-config" run pyenv-virtualenv "2.7.11" "venv" @@ -41,8 +44,10 @@ PYENV_VERSION=2.7.11 virtualenv ${PYENV_ROOT}/versions/2.7.11/envs/venv Installing pip from https://bootstrap.pypa.io/pip/2.7/get-pip.py... rehashed OUT - assert [ -x "${PYENV_ROOT}/versions/2.7.11/envs/venv/bin/pydoc" ] assert_success + for x in pydoc python-config python2-config python2.7-config; do + assert [[ -x "${PYENV_ROOT}/versions/2.7.11/envs/venv/bin/$x" ]] + done unstub_pyenv unstub pyenv-virtualenv-prefix