File python-urllib3-recent-date.patch of Package python-urllib3.18116

From fc27a8ed4203084c97fd1260d2566255c35ca945 Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <dimstar@opensuse.org>
Date: Sun, 31 Dec 2017 15:11:16 +0100
Subject: [PATCH] Move RECENT_DATE ahead to fix tests

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(2019, 1, 1)
 
 
 class DummyConnection(object):
-- 
2.15.1

openSUSE Build Service is sponsored by