Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-matplotlib for 
openSUSE:Factory checked in at 2022-12-08 16:50:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-matplotlib (Old)
 and      /work/SRC/openSUSE:Factory/.python-matplotlib.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-matplotlib"

Thu Dec  8 16:50:17 2022 rev:97 rq:1041050 version:3.5.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-matplotlib/python-matplotlib.changes      
2022-11-12 17:40:24.233894648 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-matplotlib.new.1835/python-matplotlib.changes
    2022-12-08 16:50:19.483218756 +0100
@@ -1,0 +2,6 @@
+Wed Dec  7 11:28:09 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add fix-tests-pytest72.patch to fix tests failing with pytest 7.2
+  gh#matplotlib/matplotlib#24173
+
+-------------------------------------------------------------------

New:
----
  fix-tests-pytest72.patch

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

Other differences:
------------------
++++++ python-matplotlib.spec ++++++
--- /var/tmp/diff_new_pack.UUOriO/_old  2022-12-08 16:50:20.215222500 +0100
+++ /var/tmp/diff_new_pack.UUOriO/_new  2022-12-08 16:50:20.219222520 +0100
@@ -41,6 +41,8 @@
 # Bundled version of freetype and qhull for testing purposes only
 Source98:       http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz
 Source99:       
https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz
+# PATCH-FIX-UPSTREAM fix-tests-pytest72.patch gh#matplotlib/matplotlib#24173
+Patch1:         fix-tests-pytest72.patch
 BuildRequires:  %{python_module Cycler >= 0.10}
 BuildRequires:  %{python_module FontTools >= 4.22.0}
 BuildRequires:  %{python_module devel}
@@ -233,7 +235,7 @@
 for %{name} plotting package
 
 %prep
-%autosetup -n matplotlib-%{version}
+%autosetup -p1 -n matplotlib-%{version}
 #copy freetype to the right location, so that matplotlib will not try to 
download it
 mkdir -p ~/.cache/matplotlib/
 SHA=($(sha256sum %{SOURCE98}))

++++++ fix-tests-pytest72.patch ++++++
Index: matplotlib-3.5.3/lib/matplotlib/tests/test_cbook.py
===================================================================
--- matplotlib-3.5.3.orig/lib/matplotlib/tests/test_cbook.py
+++ matplotlib-3.5.3/lib/matplotlib/tests/test_cbook.py
@@ -52,7 +52,7 @@ class Test_delete_masked_points:
 
 
 class Test_boxplot_stats:
-    def setup(self):
+    def setup_method(self):
         np.random.seed(937)
         self.nrows = 37
         self.ncols = 4
@@ -178,7 +178,7 @@ class Test_boxplot_stats:
 
 
 class Test_callback_registry:
-    def setup(self):
+    def setup_method(self):
         self.signal = 'test'
         self.callbacks = cbook.CallbackRegistry()
 
Index: matplotlib-3.5.3/lib/matplotlib/tests/test_mlab.py
===================================================================
--- matplotlib-3.5.3.orig/lib/matplotlib/tests/test_mlab.py
+++ matplotlib-3.5.3/lib/matplotlib/tests/test_mlab.py
@@ -92,7 +92,7 @@ def test_window():
 
 
 class TestDetrend:
-    def setup(self):
+    def setup_method(self):
         np.random.seed(0)
         n = 1000
         x = np.linspace(0., 100, n)

Reply via email to