Hello community,

here is the log from the commit of package python-raven for openSUSE:Factory 
checked in at 2020-09-04 11:03:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-raven (Old)
 and      /work/SRC/openSUSE:Factory/.python-raven.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-raven"

Fri Sep  4 11:03:23 2020 rev:14 rq:831399 version:6.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-raven/python-raven.changes        
2020-05-28 09:08:05.815838920 +0200
+++ /work/SRC/openSUSE:Factory/.python-raven.new.3399/python-raven.changes      
2020-09-04 11:04:37.494800567 +0200
@@ -1,0 +2,5 @@
+Tue Sep  1 15:37:52 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Add patch fix-tests.patch
+
+-------------------------------------------------------------------

New:
----
  fix-tests.patch

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

Other differences:
------------------
++++++ python-raven.spec ++++++
--- /var/tmp/diff_new_pack.NBZ4KQ/_old  2020-09-04 11:04:39.058801404 +0200
+++ /var/tmp/diff_new_pack.NBZ4KQ/_new  2020-09-04 11:04:39.062801407 +0200
@@ -28,6 +28,7 @@
 # https://github.com/getsentry/raven-python/issues/1284
 Patch0:         remove-unittest2.patch
 Patch1:         pytest4.patch
+Patch2:         fix-tests.patch
 BuildRequires:  %{python_module Django}
 BuildRequires:  %{python_module Flask >= 0.8}
 BuildRequires:  %{python_module Flask-Login >= 0.2.0}

++++++ fix-tests.patch ++++++
Index: raven-6.10.0/tests/contrib/django/views.py
===================================================================
--- raven-6.10.0.orig/tests/contrib/django/views.py
+++ raven-6.10.0/tests/contrib/django/views.py
@@ -1,7 +1,7 @@
 from __future__ import absolute_import
 
 from django.http import HttpResponse
-from django.shortcuts import get_object_or_404, render_to_response
+from django.shortcuts import get_object_or_404, render
 from raven.contrib.django.models import client
 
 import logging
@@ -41,7 +41,7 @@ def decorated_raise_exc(request):
 
 
 def template_exc(request):
-    return render_to_response('error.html')
+    return render(None, 'error.html')
 
 
 def logging_request_exc(request):
Index: raven-6.10.0/tests/contrib/test_celery.py
===================================================================
--- raven-6.10.0.orig/tests/contrib/test_celery.py
+++ raven-6.10.0/tests/contrib/test_celery.py
@@ -61,9 +61,7 @@ class CeleryLoggingHandlerTestCase(TestC
         # remove any existing handlers and restore
         # them when complete
         self.root = logging.getLogger()
-        for handler in self.root.handlers:
-            self.root.removeHandler(handler)
-            self.addCleanup(self.root.addHandler, handler)
+        self.root.handlers = [] # so uggly
 
     def test_handler_added(self):
         # Given: there are no handlers configured

Reply via email to