[Bug 1074247] New: python-urllib3: fails test suite starting with 31.12.2017
http://bugzilla.opensuse.org/show_bug.cgi?id=1074247
Bug ID: 1074247
Summary: python-urllib3: fails test suite starting with
31.12.2017
Classification: openSUSE
Product: openSUSE Tumbleweed
Version: Current
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
Assignee: bnc-team-screening@forge.provo.novell.com
Reporter: dimstar@opensuse.org
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
The test suite has a hard coded date which is compared against current date,
and fails if 'drifting too far away' - which happened now:
https://github.com/shazow/urllib3/issues/1303
[ 62s] def test_recent_date(self):
[ 62s] # This test is to make sure that the RECENT_DATE value
[ 62s] # doesn't get too far behind what the current date is.
[ 62s] # When this test fails update urllib3.connection.RECENT_DATE
[ 62s] # according to the rules defined in that file.
[ 62s] two_years = datetime.timedelta(days=365 * 2)
[ 62s] > assert RECENT_DATE > (datetime.datetime.today() -
two_years).date()
[ 62s] E AssertionError: assert datetime.date(2016, 1, 1) >
datetime.date(2016, 1, 1)
[ 62s] E + where datetime.date(2016, 1, 1) =
http://bugzilla.opensuse.org/show_bug.cgi?id=1074247
Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=1074247
http://bugzilla.opensuse.org/show_bug.cgi?id=1074247#c1
Dominique Leuenberger
participants (1)
-
bugzilla_noreply@novell.com