[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) = <built-in method date of datetime.datetime object at 0x7fb6899be198>() [ 62s] E + where <built-in method date of datetime.datetime object at 0x7fb6899be198> = (datetime.datetime(2017, 12, 31, 10, 16, 14, 472906) - datetime.timedelta(730)).date [ 62s] E + where datetime.datetime(2017, 12, 31, 10, 16, 14, 472906) = <built-in method today of type object at 0x7fb68e948d20>() [ 62s] E + where <built-in method today of type object at 0x7fb68e948d20> = <class 'datetime.datetime'>.today [ 62s] E + where <class 'datetime.datetime'> = datetime.datetime -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1074247 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High CC| |alarrosa@suse.com, | |aplanas@suse.com, | |dmueller@suse.com, | |jmatejek@suse.com, | |mimi.vx@gmail.com, | |p.drouand@gmail.com, | |rjschwei@suse.com, | |stephan.barth@suse.com, | |tbechtold@suse.com, | |tchvatal@suse.com, | |toddrme2178@gmail.com Assignee|bnc-team-screening@forge.pr |jmatejek@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1074247 http://bugzilla.opensuse.org/show_bug.cgi?id=1074247#c1 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Dominique Leuenberger <dimstar@opensuse.org> --- Was fixed with sr 560898 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com