diff --git a/SOURCES/urllib3-delay-timebomb.patch b/SOURCES/urllib3-delay-timebomb.patch new file mode 100644 index 0000000..3d0690f --- /dev/null +++ b/SOURCES/urllib3-delay-timebomb.patch @@ -0,0 +1,11 @@ +diff -Naurp a/test/test_connection.py b/test/test_connection.py +--- a/test/test_connection.py 2018-06-05 03:18:52.000000000 +0000 ++++ b/test/test_connection.py 2019-07-31 11:01:10.025593879 +0000 +@@ -51,5 +51,5 @@ class TestConnection(object): + # 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. +- two_years = datetime.timedelta(days=365 * 2) +- assert RECENT_DATE > (datetime.datetime.today() - two_years).date() ++ five_years = datetime.timedelta(days=365 * 5) ++ assert RECENT_DATE > (datetime.datetime.today() - five_years).date() diff --git a/SPECS/python-urllib3.spec b/SPECS/python-urllib3.spec index edb6013..5de5bbf 100644 --- a/SPECS/python-urllib3.spec +++ b/SPECS/python-urllib3.spec @@ -14,6 +14,8 @@ Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz Source1: ssl_match_hostname_py3.py BuildArch: noarch +Patch1: urllib3-delay-timebomb.patch + %description Python HTTP module with connection pooling and file POST abilities. @@ -64,6 +66,9 @@ Python3 HTTP module with connection pooling and file POST abilities. %prep %setup -q -n %{srcname}-%{version} + +%patch1 -p1 + # Drop the dummyserver tests in koji. # These require tornado, a Web framework otherwise unused in the distro. rm -rf test/with_dummyserver/