@@ -32,11 +32,12 @@ unstub_pyenv() {
32
32
33
33
run pyenv-virtualenv venv
34
34
35
- assert_success
36
35
assert_output << OUT
37
36
PYENV_VERSION=3.5.1 python -m venv ${PYENV_ROOT} /versions/3.5.1/envs/venv
38
37
rehashed
39
38
OUT
39
+ assert [ -x " ${PYENV_ROOT} /versions/3.5.1/envs/venv/bin/pydoc" ]
40
+ assert_success
40
41
41
42
unstub_pyenv
42
43
unstub pyenv-virtualenv-prefix
57
58
58
59
run pyenv-virtualenv venv
59
60
60
- assert_success
61
61
assert_output << OUT
62
62
PYENV_VERSION=3.5.1 virtualenv ${PYENV_ROOT} /versions/3.5.1/envs/venv
63
63
rehashed
64
64
OUT
65
+ assert [ -x " ${PYENV_ROOT} /versions/3.5.1/envs/venv/bin/pydoc" ]
66
+ assert_success
65
67
66
68
unstub_pyenv
67
69
unstub pyenv-virtualenv-prefix
68
70
unstub pyenv-exec
69
71
teardown_m_venv " 3.5.1"
70
72
}
71
73
72
- @test " install virtualenv if venv is not avaialble " {
74
+ @test " install virtualenv if venv is not available " {
73
75
export PYENV_VERSION=" 3.2.1"
74
76
setup_version " 3.2.1"
75
77
stub_pyenv " ${PYENV_VERSION} "
81
83
82
84
run pyenv-virtualenv venv
83
85
84
- assert_success
85
86
assert_output << OUT
86
87
PYENV_VERSION=3.2.1 pip install virtualenv==13.1.2
87
88
PYENV_VERSION=3.2.1 virtualenv ${PYENV_ROOT} /versions/3.2.1/envs/venv
88
89
rehashed
89
90
OUT
91
+ assert [ -x " ${PYENV_ROOT} /versions/3.2.1/envs/venv/bin/pydoc" ]
92
+ assert_success
90
93
91
94
unstub_pyenv
92
95
unstub pyenv-virtualenv-prefix
@@ -112,6 +115,7 @@ PYENV_VERSION=3.5.1 pip install virtualenv
112
115
PYENV_VERSION=3.5.1 virtualenv --python=${TMP} /python3 ${PYENV_ROOT} /versions/3.5.1/envs/venv
113
116
rehashed
114
117
OUT
118
+ assert [ -x " ${PYENV_ROOT} /versions/3.5.1/envs/venv/bin/pydoc" ]
115
119
assert_success
116
120
117
121
unstub_pyenv
@@ -138,6 +142,7 @@ PYENV_VERSION=3.5.1 pip install virtualenv
138
142
PYENV_VERSION=3.5.1 virtualenv --python=${TMP} /python3 ${PYENV_ROOT} /versions/3.5.1/envs/venv
139
143
rehashed
140
144
OUT
145
+ assert [ -x " ${PYENV_ROOT} /versions/3.5.1/envs/venv/bin/pydoc" ]
141
146
assert_success
142
147
143
148
unstub_pyenv
@@ -158,12 +163,13 @@ OUT
158
163
159
164
PIP_REQUIRE_VENV=" true" run pyenv-virtualenv venv
160
165
161
- assert_success
162
166
assert_output << OUT
163
167
PIP_REQUIRE_VENV= PYENV_VERSION=3.2.1 pip install virtualenv==13.1.2
164
168
PIP_REQUIRE_VENV= PYENV_VERSION=3.2.1 virtualenv ${PYENV_ROOT} /versions/3.2.1/envs/venv
165
169
rehashed
166
170
OUT
171
+ assert [ -x " ${PYENV_ROOT} /versions/3.2.1/envs/venv/bin/pydoc" ]
172
+ assert_success
167
173
168
174
unstub_pyenv
169
175
unstub pyenv-virtualenv-prefix
0 commit comments