2
2
3
3
# Default Python Versions
4
4
# shellcheck source=bin/default_pythons
5
- source " $BIN_DIR /default_pythons"
5
+ source " bin /default_pythons"
6
6
7
7
testAirflow () {
8
8
export SLUGIFY_USES_TEXT_UNIDECODE=" yes"
@@ -98,14 +98,19 @@ testPylibmc() {
98
98
}
99
99
100
100
testPythonDefault () {
101
+ updateVersion " pythonDefault" $DEFAULT_PYTHON_VERSION
101
102
compile " pythonDefault"
102
103
assertCaptured $DEFAULT_PYTHON_VERSION
104
+ assertNotCaptured " security update"
103
105
assertCapturedSuccess
104
106
}
105
107
106
108
testPython2 () {
109
+ updateVersion " python2" $LATEST_27
110
+ echo $LATEST_27 > " runtime.txt"
107
111
compile " python2"
108
112
assertCaptured $LATEST_27
113
+ assertNotCaptured " security update"
109
114
assertCapturedSuccess
110
115
}
111
116
@@ -123,8 +128,10 @@ testPython2_fail() {
123
128
}
124
129
125
130
testPython3_4 () {
131
+ updateVersion " python3_4" $LATEST_34
126
132
compile " python3_4"
127
133
assertCaptured $LATEST_34
134
+ assertNotCaptured " security update"
128
135
assertCapturedSuccess
129
136
}
130
137
@@ -146,8 +153,10 @@ testPython3_4_fail() {
146
153
}
147
154
148
155
testPython3_5 () {
156
+ updateVersion " python3_5" $LATEST_35
149
157
compile " python3_5"
150
158
assertCaptured $LATEST_35
159
+ assertNotCaptured " security update"
151
160
assertCapturedSuccess
152
161
}
153
162
@@ -169,8 +178,10 @@ testPython3_5_fail() {
169
178
}
170
179
171
180
testPython3_6 () {
181
+ updateVersion " python3_6" $LATEST_36
172
182
compile " python3_6"
173
183
assertCaptured $LATEST_36
184
+ assertNotCaptured " security update"
174
185
assertCapturedSuccess
175
186
}
176
187
@@ -188,10 +199,12 @@ testPython3_6_fail() {
188
199
}
189
200
190
201
testPython3_7 () {
202
+ updateVersion " python3_7" $LATEST_37
191
203
compile " python3_7"
192
204
if [[ $STACK = " cedar-14" ]]; then
193
205
assertCapturedError
194
206
else
207
+ assertNotCaptured " security update"
195
208
assertCaptured $LATEST_37
196
209
assertCapturedSuccess
197
210
fi
0 commit comments