Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-django-redis for
openSUSE:Factory checked in at 2021-03-15 10:54:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-redis (Old)
and /work/SRC/openSUSE:Factory/.python-django-redis.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-redis"
Mon Mar 15 10:54:43 2021 rev:8 rq:878601 version:4.12.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes
2020-08-15 21:19:28.975592607 +0200
+++
/work/SRC/openSUSE:Factory/.python-django-redis.new.2401/python-django-redis.changes
2021-03-15 10:54:44.577203269 +0100
@@ -1,0 +2,5 @@
+Fri Mar 12 12:00:39 UTC 2021 - Mark??ta Machov?? <[email protected]>
+
+- Fix recent build failure with clean-cache.patch
+
+-------------------------------------------------------------------
New:
----
clean-cache.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-redis.spec ++++++
--- /var/tmp/diff_new_pack.9S5Mg1/_old 2021-03-15 10:54:45.093204061 +0100
+++ /var/tmp/diff_new_pack.9S5Mg1/_new 2021-03-15 10:54:45.097204068 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-django-redis
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
License: BSD-3-Clause
URL: https://github.com/jazzband/django-redis
Source:
https://files.pythonhosted.org/packages/source/d/django-redis/django-redis-%{version}.tar.gz
+# minimal patch to fix the testsuite, see
https://github.com/jazzband/django-redis/pull/492 for reference
+Patch0: clean-cache.patch
BuildRequires: %{python_module Django >= 2.2}
BuildRequires: %{python_module lz4 >= 0.15}
BuildRequires: %{python_module mock}
@@ -47,6 +49,7 @@
%prep
%setup -q -n django-redis-%{version}
+%autopatch -p1
%build
%python_build
++++++ clean-cache.patch ++++++
Index: django-redis-4.12.1/tests/test_backend.py
===================================================================
--- django-redis-4.12.1.orig/tests/test_backend.py
+++ django-redis-4.12.1/tests/test_backend.py
@@ -288,7 +288,7 @@ class DjangoRedisCacheTests(unittest.Tes
res = cache.get("add_key")
self.assertEqual(res, "Initial value")
-
+ cache.delete("other_key")
res = self.cache.add("other_key", "New value")
self.assertIs(res, True)