python-matplotlib/0003-Increase-tolerances-fo...

43 lines
1.7 KiB
Diff
Raw Normal View History

2020-06-20 07:52:08 +00:00
From e952bc36999a141a5c026544bae0c52817d4edd9 Mon Sep 17 00:00:00 2001
2018-03-31 07:28:44 +00:00
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Tue, 23 Jan 2018 20:27:17 -0500
2019-05-31 05:44:54 +00:00
Subject: [PATCH 3/4] Increase tolerances for non-x86_64 arches.
2018-03-31 07:28:44 +00:00
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
2020-03-04 04:05:13 +00:00
lib/matplotlib/tests/test_streamplot.py | 4 ++--
2018-08-29 03:29:22 +00:00
lib/mpl_toolkits/tests/test_axes_grid1.py | 2 +-
2020-03-04 04:05:13 +00:00
2 files changed, 3 insertions(+), 3 deletions(-)
2018-03-31 07:28:44 +00:00
diff --git a/lib/matplotlib/tests/test_streamplot.py b/lib/matplotlib/tests/test_streamplot.py
2020-03-04 04:05:13 +00:00
index d2218f6f2..1afc60543 100644
2018-03-31 07:28:44 +00:00
--- a/lib/matplotlib/tests/test_streamplot.py
+++ b/lib/matplotlib/tests/test_streamplot.py
2020-03-04 04:05:13 +00:00
@@ -63,8 +63,8 @@ def test_linewidth():
linewidth=lw)
2018-03-31 07:28:44 +00:00
2020-03-04 04:05:13 +00:00
-@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)
2018-03-31 07:28:44 +00:00
def test_masks_and_nans():
X, Y, U, V = velocity_field()
2020-03-04 04:05:13 +00:00
mask = np.zeros(U.shape, dtype=bool)
2018-08-29 03:29:22 +00:00
diff --git a/lib/mpl_toolkits/tests/test_axes_grid1.py b/lib/mpl_toolkits/tests/test_axes_grid1.py
2020-03-04 04:05:13 +00:00
index 9ed9a9280..56a3bd14a 100644
2018-08-29 03:29:22 +00:00
--- a/lib/mpl_toolkits/tests/test_axes_grid1.py
+++ b/lib/mpl_toolkits/tests/test_axes_grid1.py
2020-03-04 04:05:13 +00:00
@@ -343,7 +343,7 @@ def test_zooming_with_inverted_axes():
2018-08-29 03:29:22 +00:00
2020-03-04 04:05:13 +00:00
@image_comparison(['anchored_direction_arrows.png'],
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0))
+ tol=0.02)
2018-08-29 03:29:22 +00:00
def test_anchored_direction_arrows():
fig, ax = plt.subplots()
2020-03-04 04:05:13 +00:00
ax.imshow(np.zeros((10, 10)), interpolation='nearest')
2018-03-31 07:28:44 +00:00
--
2020-06-20 07:52:08 +00:00
2.25.4
2018-03-31 07:28:44 +00:00