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

41 lines
1.5 KiB
Diff
Raw Normal View History

2019-05-31 05:44:54 +00:00
From 64f6b21fba56fc6baeb0171873e9d77d35b73eb6 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>
---
2018-08-29 03:29:22 +00:00
lib/matplotlib/tests/test_streamplot.py | 2 +-
lib/mpl_toolkits/tests/test_axes_grid1.py | 2 +-
2 files changed, 2 insertions(+), 2 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
2019-05-31 05:44:54 +00:00
index a712680cd..6007c9b9a 100644
2018-03-31 07:28:44 +00:00
--- a/lib/matplotlib/tests/test_streamplot.py
+++ b/lib/matplotlib/tests/test_streamplot.py
2018-08-17 21:37:11 +00:00
@@ -61,7 +61,7 @@ def test_linewidth():
2018-03-31 07:28:44 +00:00
2018-08-17 21:37:11 +00:00
@image_comparison(baseline_images=['streamplot_masks_and_nans'],
- tol=0.04 if on_win else 0,
+ tol=0.04 if on_win else 0.01,
remove_text=True, style='mpl20')
2018-03-31 07:28:44 +00:00
def test_masks_and_nans():
X, Y, U, V = velocity_field()
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
2019-05-31 05:44:54 +00:00
index fef2ebc21..75b35d0b7 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
2019-03-02 23:39:03 +00:00
@@ -361,7 +361,7 @@ def test_zooming_with_inverted_axes():
2018-08-29 03:29:22 +00:00
@image_comparison(baseline_images=['anchored_direction_arrows'],
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
+ tol=0.02,
extensions=['png'])
def test_anchored_direction_arrows():
fig, ax = plt.subplots()
2018-03-31 07:28:44 +00:00
--
2019-05-31 05:44:54 +00:00
2.21.0
2018-03-31 07:28:44 +00:00