Hello community, here is the log from the commit of package python-urllib3 for openSUSE:Factory checked in at 2018-01-01 22:09:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-urllib3 (Old) and /work/SRC/openSUSE:Factory/.python-urllib3.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-urllib3" Mon Jan 1 22:09:50 2018 rev:15 rq:560898 version:1.22 Changes: -------- --- /work/SRC/openSUSE:Factory/python-urllib3/python-urllib3.changes 2017-10-28 14:17:35.668524482 +0200 +++ /work/SRC/openSUSE:Factory/.python-urllib3.new/python-urllib3.changes 2018-01-01 22:10:12.277313667 +0100 @@ -1,0 +2,6 @@ +Sun Dec 31 14:39:03 UTC 2017 - dimstar@opensuse.org + +- Add python-urllib3-recent-date.patch: Fix test suite, use correct + date (gh#shazow/urllib3#1303, boo#1074247). + +------------------------------------------------------------------- New: ---- python-urllib3-recent-date.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-urllib3.spec ++++++ --- /var/tmp/diff_new_pack.6IVjYc/_old 2018-01-01 22:10:14.456586097 +0100 +++ /var/tmp/diff_new_pack.6IVjYc/_new 2018-01-01 22:10:14.460584763 +0100 @@ -32,6 +32,8 @@ Patch2: urllib3-ssl-default-context.patch # PATCH-FIX-OPENSUSE -- do not use unsupported SSLv3 in tests Patch3: urllib3-test-ssl-drop-sslv3.patch +# PATCH-FIX-UPSTREAM python-urllib3-recent-date.patch gh#shazow/urllib3#1303, boo#1074247 dimstar@opensuse.org -- Fix test suite, use correct date +Patch4: python-urllib3-recent-date.patch BuildRequires: python-rpm-macros #!BuildIgnore: python-requests BuildRequires: %{python_module PySocks} @@ -73,6 +75,7 @@ %if %(python3 -c "import ssl; print(hasattr(ssl,'PROTOCOL_TLSv1_2'))") == "True" %patch3 -p1 %endif +%patch4 -p1 %build %python_build ++++++ python-urllib3-recent-date.patch ++++++
From fc27a8ed4203084c97fd1260d2566255c35ca945 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger
Date: Sun, 31 Dec 2017 15:11:16 +0100 Subject: [PATCH] Move RECENT_DATE to 2017-06-30
The test suite expects the current date to be no more than two years in the future of RECENT_DATE, which just serves as a reference point. Also clarify the comment about how to update RECENT_DATE Fixes #1303 --- urllib3/connection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/urllib3/connection.py b/urllib3/connection.py index 06bcbde..9ea04bb 100644 --- a/urllib3/connection.py +++ b/urllib3/connection.py @@ -57,9 +57,9 @@ port_by_scheme = { } # When updating RECENT_DATE, move it to -# within two years of the current date, and no -# earlier than 6 months ago. -RECENT_DATE = datetime.date(2016, 1, 1) +# within two years of the current date, and not +# less than 6 months ago. +RECENT_DATE = datetime.date(2017, 6, 30) class DummyConnection(object): -- 2.15.1