@@ -32,11 +32,12 @@ unstub_pyenv() {
3232
3333 run pyenv-virtualenv venv
3434
35- assert_success
3635 assert_output << OUT
3736PYENV_VERSION=3.5.1 python -m venv ${PYENV_ROOT} /versions/3.5.1/envs/venv
3837rehashed
3938OUT
39+ assert [ -x " ${PYENV_ROOT} /versions/3.5.1/envs/venv/bin/pydoc" ]
40+ assert_success
4041
4142 unstub_pyenv
4243 unstub pyenv-virtualenv-prefix
5758
5859 run pyenv-virtualenv venv
5960
60- assert_success
6161 assert_output << OUT
6262PYENV_VERSION=3.5.1 virtualenv ${PYENV_ROOT} /versions/3.5.1/envs/venv
6363rehashed
6464OUT
65+ assert [ -x " ${PYENV_ROOT} /versions/3.5.1/envs/venv/bin/pydoc" ]
66+ assert_success
6567
6668 unstub_pyenv
6769 unstub pyenv-virtualenv-prefix
6870 unstub pyenv-exec
6971 teardown_m_venv " 3.5.1"
7072}
7173
72- @test " install virtualenv if venv is not avaialble " {
74+ @test " install virtualenv if venv is not available " {
7375 export PYENV_VERSION=" 3.2.1"
7476 setup_version " 3.2.1"
7577 stub_pyenv " ${PYENV_VERSION} "
8183
8284 run pyenv-virtualenv venv
8385
84- assert_success
8586 assert_output << OUT
8687PYENV_VERSION=3.2.1 pip install virtualenv==13.1.2
8788PYENV_VERSION=3.2.1 virtualenv ${PYENV_ROOT} /versions/3.2.1/envs/venv
8889rehashed
8990OUT
91+ assert [ -x " ${PYENV_ROOT} /versions/3.2.1/envs/venv/bin/pydoc" ]
92+ assert_success
9093
9194 unstub_pyenv
9295 unstub pyenv-virtualenv-prefix
@@ -112,6 +115,7 @@ PYENV_VERSION=3.5.1 pip install virtualenv
112115PYENV_VERSION=3.5.1 virtualenv --python=${TMP} /python3 ${PYENV_ROOT} /versions/3.5.1/envs/venv
113116rehashed
114117OUT
118+ assert [ -x " ${PYENV_ROOT} /versions/3.5.1/envs/venv/bin/pydoc" ]
115119 assert_success
116120
117121 unstub_pyenv
@@ -138,6 +142,7 @@ PYENV_VERSION=3.5.1 pip install virtualenv
138142PYENV_VERSION=3.5.1 virtualenv --python=${TMP} /python3 ${PYENV_ROOT} /versions/3.5.1/envs/venv
139143rehashed
140144OUT
145+ assert [ -x " ${PYENV_ROOT} /versions/3.5.1/envs/venv/bin/pydoc" ]
141146 assert_success
142147
143148 unstub_pyenv
@@ -158,12 +163,13 @@ OUT
158163
159164 PIP_REQUIRE_VENV=" true" run pyenv-virtualenv venv
160165
161- assert_success
162166 assert_output << OUT
163167PIP_REQUIRE_VENV= PYENV_VERSION=3.2.1 pip install virtualenv==13.1.2
164168PIP_REQUIRE_VENV= PYENV_VERSION=3.2.1 virtualenv ${PYENV_ROOT} /versions/3.2.1/envs/venv
165169rehashed
166170OUT
171+ assert [ -x " ${PYENV_ROOT} /versions/3.2.1/envs/venv/bin/pydoc" ]
172+ assert_success
167173
168174 unstub_pyenv
169175 unstub pyenv-virtualenv-prefix
0 commit comments