Transient failure of requests.tests.RequestsTests.test_max_age_expiration
Traceback (most recent call last):
File "/home/jenkins/workspace/pull-requests-trusty/database/postgis/label/trusty-pr/python/python2.7/tests/requests/tests.py", line 240, in test_max_age_expiration
self.assertEqual(max_age_cookie['expires'], cookie_date(time.time() + 10))
AssertionError: u'Fri, 22-Jan-2016 19:44:54 GMT' != u'Fri, 22-Jan-2016 19:44:55 GMT'
- Fri, 22-Jan-2016 19:44:54 GMT
? ^
+ Fri, 22-Jan-2016 19:44:55 GMT
? ^
Change History
(7)
Cc: |
berker.peksag@… added
|
Has patch: |
set
|
Owner: |
changed from nobody to Berker Peksag
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Pull request: https://github.com/django/django/pull/6130
Alternative solutions:
cookie_date()
.time.time() + 10 + 1
ortime.time() + 10 - 1
. This is simpler than the first solution.cookie_date()
inHttpResponseBase.set_cookie()
.