public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pytest-mpl] rawhide: Increase the test tolerances for new matplotlib
@ 2026-08-03  9:13 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-03  9:13 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-pytest-mpl
            Branch : rawhide
            Commit : bef4f77ac54d46c8be39f9451d0e812f4f83d337
            Author : Tomáš Hrnčiar <thrnciar@redhat.com>
            Date   : 2026-08-03T11:09:59+02:00
            Stats  : +25/-12 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-pytest-mpl/c/bef4f77ac54d46c8be39f9451d0e812f4f83d337?branch=rawhide

            Log:
            Increase the test tolerances for new matplotlib

Upstream issue: https://github.com/matplotlib/pytest-mpl/issues/263

---
diff --git a/0001-Increase-tolerance-for-new-FreeType.patch b/0001-Increase-tolerance-for-new-FreeType.patch
index de81b5d..5764338 100644
--- a/0001-Increase-tolerance-for-new-FreeType.patch
+++ b/0001-Increase-tolerance-for-new-FreeType.patch
@@ -1,27 +1,31 @@
-From cb75688d5cbdcecbca550d6661e4734a7121854f Mon Sep 17 00:00:00 2001
+From fe282bb967b9fc6990d1a094e535cf801e4f149b Mon Sep 17 00:00:00 2001
 From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Mon, 16 Jul 2018 00:52:13 -0400
+Date: Mon, 3 Aug 2026 10:29:56 +0200
 Subject: [PATCH] Increase tolerance for new FreeType.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
 
 Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Co-authored-by: Tomáš Hrnčiar <thrnciar@redhat.com>
 ---
- tests/test_pytest_mpl.py | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
+ tests/test_pytest_mpl.py | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
 
 diff --git a/tests/test_pytest_mpl.py b/tests/test_pytest_mpl.py
-index 146bc0a..1dc7bc1 100644
+index 735defd..4cef426 100644
 --- a/tests/test_pytest_mpl.py
 +++ b/tests/test_pytest_mpl.py
-@@ -54,7 +54,7 @@ def assert_pytest_fails_with(args, output_substring):
+@@ -56,7 +56,7 @@ def assert_pytest_fails_with(args, output_substring):
  
  
  @pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
 -                               tolerance=DEFAULT_TOLERANCE)
-+                               tolerance=7.1)
++                               tolerance=10)
  def test_succeeds():
      fig = plt.figure()
      ax = fig.add_subplot(1, 1, 1)
-@@ -86,7 +86,7 @@ def test_succeeds_faulty_mirror():
+@@ -88,7 +88,7 @@ def test_succeeds_faulty_mirror():
  class TestClass(object):
  
      @pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
@@ -30,16 +34,25 @@ index 146bc0a..1dc7bc1 100644
      def test_succeeds(self):
          fig = plt.figure()
          ax = fig.add_subplot(1, 1, 1)
-@@ -213,7 +213,7 @@ def test_nofigure():
+@@ -98,7 +98,7 @@ class TestClass(object):
+ 
+ @pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
+                                savefig_kwargs={'dpi': 30},
+-                               tolerance=DEFAULT_TOLERANCE)
++                               tolerance=10)
+ def test_dpi():
+     fig = plt.figure()
+     ax = fig.add_subplot(1, 1, 1)
+@@ -215,7 +215,7 @@ def test_nofigure():
  
  @pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
                                 style='fivethirtyeight',
 -                               tolerance=DEFAULT_TOLERANCE)
-+                               tolerance=7.5)
++                               tolerance=16)
  def test_base_style():
      fig = plt.figure()
      ax = fig.add_subplot(1, 1, 1)
-@@ -249,7 +249,7 @@ class TestClassWithSetup:
+@@ -251,7 +251,7 @@ class TestClassWithSetup:
  
      @pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
                                     filename='test_succeeds.png',
@@ -49,5 +62,5 @@ index 146bc0a..1dc7bc1 100644
          fig = plt.figure()
          ax = fig.add_subplot(1, 1, 1)
 -- 
-2.26.2
+2.54.0
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-03  9:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-03  9:13 [rpms/python-pytest-mpl] rawhide: Increase the test tolerances for new matplotlib 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox