Hello community,

here is the log from the commit of package python-Django1 for openSUSE:Factory 
checked in at 2019-04-05 11:55:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Django1 (Old)
 and      /work/SRC/openSUSE:Factory/.python-Django1.new.3908 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Django1"

Fri Apr  5 11:55:03 2019 rev:11 rq:690885 version:1.11.20

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Django1/python-Django1.changes    
2019-03-29 20:37:25.194638483 +0100
+++ /work/SRC/openSUSE:Factory/.python-Django1.new.3908/python-Django1.changes  
2019-04-05 11:55:04.750264404 +0200
@@ -1,0 +2,5 @@
+Tue Apr  2 12:23:32 UTC 2019 - Bernhard Wiedemann <[email protected]>
+
+- Add fix2028.patch to make tests pass until 2038
+
+-------------------------------------------------------------------

New:
----
  fix2028.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Django1.spec ++++++
--- /var/tmp/diff_new_pack.4BqXQC/_old  2019-04-05 11:55:05.926265351 +0200
+++ /var/tmp/diff_new_pack.4BqXQC/_new  2019-04-05 11:55:05.930265355 +0200
@@ -34,6 +34,8 @@
 Source99:       python-Django1-rpmlintrc
 Patch0:         django-sqlite-326.patch
 Patch1:         pyyaml5.patch
+# PATCH-FIX-OPENSUSE bmwiedemann -- fix tests after 2028 - merged in Django 
master only
+Patch2:         fix2028.patch
 BuildRequires:  %{python_module Jinja2 >= 2.9.2}
 BuildRequires:  %{python_module Pillow}
 BuildRequires:  %{python_module PyYAML}
@@ -92,6 +94,7 @@
 %setup -q -n Django-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %python_build

++++++ fix2028.patch ++++++
https://github.com/django/django/pull/10993
https://github.com/django/django/pull/10994

Author: Bernhard M. Wiedemann <[email protected]>
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):


Reply via email to