Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1
python-Django1
fix2028.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix2028.patch of Package python-Django1
https://github.com/django/django/pull/10993 https://github.com/django/django/pull/10994 Author: Bernhard M. Wiedemann <bwiedemann@suse.de> Date: Thu Feb 14 10:38:18 2019 +0100 Fix tests in 2028 staying in 2038 to not fail on 32-bit systems diff --git a/tests/requests/tests.py b/tests/requests/tests.py index 27dc439..407e4b8 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -243,12 +243,12 @@ class RequestsTests(SimpleTestCase): def test_far_expiration(self): "Cookie will expire when an distant expiration time is provided" response = HttpResponse() - response.set_cookie('datetime', expires=datetime(2028, 1, 1, 4, 5, 6)) + response.set_cookie('datetime', expires=datetime(2038, 1, 1, 4, 5, 6)) datetime_cookie = response.cookies['datetime'] self.assertIn( datetime_cookie['expires'], # assertIn accounts for slight time dependency (#23450) - ('Sat, 01-Jan-2028 04:05:06 GMT', 'Sat, 01-Jan-2028 04:05:07 GMT') + ('Fri, 01-Jan-2038 04:05:06 GMT', 'Fri, 01-Jan-2038 04:05:07 GMT') ) def test_max_age_expiration(self):
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