9b84183aca
As of 2018-01-01, python-urllib3 no longer builds because of the test
suite failure caused by RECENT_DATE not being recent enough.
RECENT_DATE was updated to 2017-06-30 upstream.
https://github.com/shazow/urllib3/issues/1303
4bff1e93d2
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 4bff1e93d2dd4663d422d7e290473d9189cec5db 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 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
|
|
|
|
diff --git a/urllib3/connection.py b/urllib3/connection.py
|
|
index 06bcbde1a..a03b573f0 100644
|
|
--- a/urllib3/connection.py
|
|
+++ b/urllib3/connection.py
|
|
@@ -56,10 +56,11 @@ class ConnectionError(Exception):
|
|
'https': 443,
|
|
}
|
|
|
|
-# 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)
|
|
+# When updating RECENT_DATE, move it to within two years of the current date,
|
|
+# and not less than 6 months ago.
|
|
+# Example: if Today is 2018-01-01, then RECENT_DATE should be any date on or
|
|
+# after 2016-01-01 (today - 2 years) AND before 2017-07-01 (today - 6 months)
|
|
+RECENT_DATE = datetime.date(2017, 6, 30)
|
|
|
|
|
|
class DummyConnection(object):
|