Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Rings:1-MinimalX
python-urllib3
python-urllib3-recent-date.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-urllib3-recent-date.patch of Package python-urllib3
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 --- src/urllib3/connection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: urllib3-1.23/urllib3/connection.py =================================================================== --- urllib3-1.23.orig/src/urllib3/connection.py +++ urllib3-1.23/src/urllib3/connection.py @@ -60,7 +60,7 @@ port_by_scheme = { # 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) +RECENT_DATE = datetime.date(2019, 1, 1) class DummyConnection(object):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor