From a8ce1a481dda9708d0238967eb3a56319b726b10 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 3 Mar 2021 14:57:01 -0500 Subject: [PATCH] Backport PR #19548: Increase tolerances for other arches. --- lib/matplotlib/tests/test_arrow_patches.py | 3 ++- .../tests/test_axisartist_grid_helper_curvelinear.py | 2 +- lib/mpl_toolkits/tests/test_mplot3d.py | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/tests/test_arrow_patches.py b/lib/matplotlib/tests/test_arrow_patches.py index 0eee4f1fbaed..3c95535e0c21 100644 --- a/lib/matplotlib/tests/test_arrow_patches.py +++ b/lib/matplotlib/tests/test_arrow_patches.py @@ -114,7 +114,8 @@ def test_fancyarrow_dash(): ax.add_patch(e2) -@image_comparison(['arrow_styles.png'], style='mpl20', remove_text=True) +@image_comparison(['arrow_styles.png'], style='mpl20', remove_text=True, + tol=0 if platform.machine() == 'x86_64' else 0.005) def test_arrow_styles(): styles = mpatches.ArrowStyle.get_styles() diff --git a/lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py b/lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py index 57397a596223..9a78a2676adb 100644 --- a/lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py +++ b/lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py @@ -17,7 +17,7 @@ @image_comparison(['custom_transform.png'], style='default', - tol=0.03 if platform.machine() == 'x86_64' else 0.034) + tol=0.03 if platform.machine() == 'x86_64' else 0.04) def test_custom_transform(): class MyTransform(Transform): input_dims = output_dims = 2 diff --git a/lib/mpl_toolkits/tests/test_mplot3d.py b/lib/mpl_toolkits/tests/test_mplot3d.py index cfcc383db1a4..f55edaa4aa1f 100644 --- a/lib/mpl_toolkits/tests/test_mplot3d.py +++ b/lib/mpl_toolkits/tests/test_mplot3d.py @@ -1,5 +1,6 @@ import functools import itertools +import platform import pytest @@ -1267,7 +1268,8 @@ def test_errorbar3d(): ax.legend() -@image_comparison(['stem3d.png'], style='mpl20') +@image_comparison(['stem3d.png'], style='mpl20', + tol=0.0 if platform.machine() == 'x86_64' else 0.003) def test_stem3d(): fig, axs = plt.subplots(2, 3, figsize=(8, 6), constrained_layout=True,