File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,9 @@ if curl --output /dev/null --silent --head --fail "$VENDORED_PYTHON"; then
52
52
fi
53
53
fi
54
54
if [[ " $PYTHON_VERSION " == $PY27 * ]]; then
55
+ puts-warn " $PYTHON_2_EOL_UPDATE "
56
+ echo " Learn More: https://devcenter.heroku.com/articles/python-2-7-eol-faq"
55
57
# security update note
56
- if [[ " $( date " +%Y" ) " -gt " 2019" ]]; then
57
- puts-warn " $PYTHON_2_EOL_UPDATE "
58
- echo " Learn More: https://devcenter.heroku.com/articles/python-2-7-eol-faq"
59
- fi
60
58
if [ " $PYTHON_VERSION " != " $LATEST_27 " ]; then
61
59
puts-warn " $ONLY_SUPPORTED_2_VERSION " " $LATEST_27 "
62
60
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
Original file line number Diff line number Diff line change @@ -19,11 +19,7 @@ testPython2() {
19
19
echo $LATEST_27 > " runtime.txt"
20
20
compile " python2"
21
21
assertCaptured $LATEST_27
22
- if [[ $( date " +%Y" ) > " 2019" ]]; then
23
- assertCaptured " python-2-7-eol-faq" ;
24
- else
25
- assertNotCaptured " python-2-7-eol-faq" ;
26
- fi
22
+ assertCaptured " python-2-7-eol-faq" ;
27
23
assertNotCaptured " security update"
28
24
assertCaptured " Installing pip 20.1.1, setuptools 44.1.1 and wheel 0.34.2"
29
25
assertCaptured " Installing SQLite3"
@@ -33,11 +29,7 @@ testPython2() {
33
29
testPython2_warn () {
34
30
compile " python2_warn"
35
31
assertCaptured " python-2.7.15"
36
- if [[ $( date " +%Y" ) > " 2019" ]]; then
37
- assertCaptured " python-2-7-eol-faq" ;
38
- else
39
- assertNotCaptured " python-2-7-eol-faq" ;
40
- fi
32
+ assertCaptured " python-2-7-eol-faq" ;
41
33
assertCaptured " Only the latest version"
42
34
assertCaptured " Installing SQLite3"
43
35
assertCapturedSuccess
You can’t perform that action at this time.
0 commit comments