From ef239b546a36647ef163f2bd749d0d450c1e28e4 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 11 Aug 2023 18:26:44 -0400 Subject: [PATCH] Backport PR #26502: TST: Increase some tolerances for non-x86 arches --- lib/matplotlib/tests/test_axes.py | 2 +- lib/mpl_toolkits/mplot3d/tests/test_axes3d.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index ac9dd0787a43..f1074d38e567 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -2502,7 +2502,7 @@ def test_contour_hatching(): @image_comparison( ['contour_colorbar'], style='mpl20', - tol=0.02 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0) + tol=0.54 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0) def test_contour_colorbar(): x, y, z = contour_dat() diff --git a/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py b/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py index ad04b12526c2..644e2f245812 100644 --- a/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py +++ b/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py @@ -1,5 +1,6 @@ import functools import itertools +import platform import pytest @@ -217,7 +218,9 @@ def test_bar3d_lightsource(): np.testing.assert_array_max_ulp(color, collection._facecolor3d[1::6], 4) -@mpl3d_image_comparison(['contour3d.png'], style='mpl20') +@mpl3d_image_comparison( + ['contour3d.png'], style='mpl20', + tol=0.002 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0) def test_contour3d(): fig = plt.figure() ax = fig.add_subplot(projection='3d') pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy