From adf06868a1e8b92e60549464f7f5a4179451bf96 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Nov 15 2019 21:52:27 +0000 Subject: fix the connection.py timebomb in the stream branches as well --- diff --git a/SPECS/python-urllib3.spec b/SPECS/python-urllib3.spec index bc1c2e8..60a31b3 100644 --- a/SPECS/python-urllib3.spec +++ b/SPECS/python-urllib3.spec @@ -94,6 +94,15 @@ rm -rf test/contrib/ # fail when combined with the unbundling of backports-ssl_match_hostname rm -f test/test_no_ssl.py +# Test `test_recent_date` fails if RECENT_DATE is not up to date. +# Comment from the test: +# This test is to make sure that the RECENT_DATE value +# doesn't get too far behind what the current date is. +# When this test fails update urllib3.connection.RECENT_DATE +# according to the rules defined in that file. +sed -i "s/^RECENT_DATE = datetime.date(2017, 6, 30)$/RECENT_DATE = datetime.date(2019, 2, 19)/" \ + src/urllib3/connection.py + %build %py2_build %if %{with python3}