From 8652868372a2a227091c457f1c711f2b6dd6af40 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 23 Jan 2018 20:27:17 -0500 Subject: [PATCH 3/4] Increase tolerances for non-x86_64 arches. Signed-off-by: Elliott Sales de Andrade --- lib/matplotlib/tests/test_streamplot.py | 4 ++-- lib/mpl_toolkits/tests/test_axes_grid1.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/tests/test_streamplot.py b/lib/matplotlib/tests/test_streamplot.py index d2218f6f2..1afc60543 100644 --- a/lib/matplotlib/tests/test_streamplot.py +++ b/lib/matplotlib/tests/test_streamplot.py @@ -63,8 +63,8 @@ def test_linewidth(): linewidth=lw) -@image_comparison(['streamplot_masks_and_nans'], - remove_text=True, style='mpl20', tol=0.04 if on_win else 0) +@image_comparison(baseline_images=['streamplot_masks_and_nans'], + remove_text=True, style='mpl20', tol=0.04 if on_win else .01) def test_masks_and_nans(): X, Y, U, V = velocity_field() mask = np.zeros(U.shape, dtype=bool) diff --git a/lib/mpl_toolkits/tests/test_axes_grid1.py b/lib/mpl_toolkits/tests/test_axes_grid1.py index 9ed9a9280..56a3bd14a 100644 --- a/lib/mpl_toolkits/tests/test_axes_grid1.py +++ b/lib/mpl_toolkits/tests/test_axes_grid1.py @@ -343,7 +343,7 @@ def test_zooming_with_inverted_axes(): @image_comparison(['anchored_direction_arrows.png'], - tol={'aarch64': 0.02}.get(platform.machine(), 0.0)) + tol=0.02) def test_anchored_direction_arrows(): fig, ax = plt.subplots() ax.imshow(np.zeros((10, 10)), interpolation='nearest') -- 2.21.1