2018-09-18 08:51:42 +00:00
|
|
|
From 642f104f23c78af5d6010916961ec62779290ea5 Mon Sep 17 00:00:00 2001
|
2018-01-24 08:02:57 +00:00
|
|
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
2018-03-31 07:28:44 +00:00
|
|
|
Date: Sat, 31 Mar 2018 00:33:37 -0400
|
|
|
|
Subject: [PATCH 3/3] Increase some tolerances for non-x86 arches.
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
|
---
|
2018-08-17 21:37:11 +00:00
|
|
|
lib/matplotlib/tests/test_arrow_patches.py | 4 ++--
|
|
|
|
lib/matplotlib/tests/test_axes.py | 6 +++---
|
|
|
|
lib/matplotlib/tests/test_backends_interactive.py | 2 +-
|
|
|
|
lib/matplotlib/tests/test_collections.py | 2 +-
|
|
|
|
lib/matplotlib/tests/test_constrainedlayout.py | 2 +-
|
|
|
|
lib/matplotlib/tests/test_cycles.py | 6 +++---
|
|
|
|
lib/matplotlib/tests/test_figure.py | 2 +-
|
|
|
|
lib/matplotlib/tests/test_image.py | 2 +-
|
|
|
|
lib/matplotlib/tests/test_legend.py | 6 +++---
|
|
|
|
lib/matplotlib/tests/test_pickle.py | 2 +-
|
|
|
|
lib/matplotlib/tests/test_scale.py | 2 +-
|
|
|
|
lib/matplotlib/tests/test_streamplot.py | 2 +-
|
|
|
|
lib/matplotlib/tests/test_units.py | 4 ++--
|
|
|
|
.../tests/test_axisartist_grid_helper_curvelinear.py | 2 +-
|
|
|
|
14 files changed, 22 insertions(+), 22 deletions(-)
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
diff --git a/lib/matplotlib/tests/test_arrow_patches.py b/lib/matplotlib/tests/test_arrow_patches.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index f678fbed3..bac0cb802 100644
|
2018-01-24 08:02:57 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_arrow_patches.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_arrow_patches.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -69,7 +69,7 @@ def __prepare_fancyarrow_dpi_cor_test():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
@image_comparison(baseline_images=['fancyarrow_dpi_cor_100dpi'],
|
2018-08-17 21:37:11 +00:00
|
|
|
remove_text=True, extensions=['png'],
|
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.016,
|
2018-01-24 08:02:57 +00:00
|
|
|
savefig_kwarg=dict(dpi=100))
|
|
|
|
def test_fancyarrow_dpi_cor_100dpi():
|
|
|
|
"""
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -85,7 +85,7 @@ def test_fancyarrow_dpi_cor_100dpi():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
@image_comparison(baseline_images=['fancyarrow_dpi_cor_200dpi'],
|
2018-08-17 21:37:11 +00:00
|
|
|
remove_text=True, extensions=['png'],
|
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.019,
|
2018-01-24 08:02:57 +00:00
|
|
|
savefig_kwarg=dict(dpi=200))
|
|
|
|
def test_fancyarrow_dpi_cor_200dpi():
|
|
|
|
"""
|
|
|
|
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py
|
2018-09-18 08:51:42 +00:00
|
|
|
index 6afed91f3..755be5570 100644
|
2018-01-24 08:02:57 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_axes.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_axes.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -386,7 +386,7 @@ def test_annotate_default_arrow():
|
2018-03-31 07:28:44 +00:00
|
|
|
assert ann.arrow_patch is not None
|
|
|
|
|
|
|
|
|
|
|
|
-@image_comparison(baseline_images=['polar_axes'], style='default')
|
|
|
|
+@image_comparison(baseline_images=['polar_axes'], style='default', tol=0.01)
|
|
|
|
def test_polar_annotations():
|
|
|
|
# you can specify the xypoint and the xytext in different
|
|
|
|
# positions and coordinate systems, and optionally turn on a
|
2018-09-18 08:51:42 +00:00
|
|
|
@@ -3348,7 +3348,7 @@ def test_vertex_markers():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
@image_comparison(baseline_images=['vline_hline_zorder',
|
2018-08-17 21:37:11 +00:00
|
|
|
'errorbar_zorder'],
|
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0))
|
2018-01-24 08:02:57 +00:00
|
|
|
+ tol=0.02)
|
|
|
|
def test_eb_line_zorder():
|
2018-08-17 21:37:11 +00:00
|
|
|
x = list(range(10))
|
2018-01-24 08:02:57 +00:00
|
|
|
|
2018-09-18 08:51:42 +00:00
|
|
|
@@ -5120,7 +5120,7 @@ def test_title_location_roundtrip():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
@image_comparison(baseline_images=["loglog"], remove_text=True,
|
2018-08-17 21:37:11 +00:00
|
|
|
extensions=['png'],
|
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0))
|
|
|
|
+ tol=0.009)
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_loglog():
|
|
|
|
fig, ax = plt.subplots()
|
|
|
|
x = np.arange(1, 11)
|
2018-06-22 07:50:26 +00:00
|
|
|
diff --git a/lib/matplotlib/tests/test_backends_interactive.py b/lib/matplotlib/tests/test_backends_interactive.py
|
2018-09-18 08:51:42 +00:00
|
|
|
index 7ba47be93..bf05c5286 100644
|
2018-06-22 07:50:26 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_backends_interactive.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_backends_interactive.py
|
2018-09-18 08:51:42 +00:00
|
|
|
@@ -101,7 +101,7 @@ fig.canvas.mpl_connect("draw_event", lambda event: timer.start())
|
2018-08-17 21:37:11 +00:00
|
|
|
|
|
|
|
plt.show()
|
|
|
|
"""
|
|
|
|
-_test_timeout = 10 # Empirically, 1s is not enough on Travis.
|
|
|
|
+_test_timeout = 30 # Empirically, 1s is not enough on Travis.
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.parametrize("backend", _get_testable_interactive_backends())
|
2018-01-24 08:02:57 +00:00
|
|
|
diff --git a/lib/matplotlib/tests/test_collections.py b/lib/matplotlib/tests/test_collections.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index 6812ee1ad..582aabb5c 100644
|
2018-01-24 08:02:57 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_collections.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_collections.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -442,7 +442,7 @@ def test_barb_limits():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
@image_comparison(baseline_images=['EllipseCollection_test_image'],
|
2018-08-17 21:37:11 +00:00
|
|
|
extensions=['png'],
|
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.012,
|
2018-01-24 08:02:57 +00:00
|
|
|
remove_text=True)
|
|
|
|
def test_EllipseCollection():
|
|
|
|
# Test basic functionality
|
2018-03-31 07:28:44 +00:00
|
|
|
diff --git a/lib/matplotlib/tests/test_constrainedlayout.py b/lib/matplotlib/tests/test_constrainedlayout.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index 0803504ce..63e3c6781 100644
|
2018-03-31 07:28:44 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_constrainedlayout.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_constrainedlayout.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -173,7 +173,7 @@ def test_constrained_layout9():
|
2018-03-31 07:28:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
@image_comparison(baseline_images=['constrained_layout10'],
|
|
|
|
- extensions=['png'])
|
|
|
|
+ extensions=['png'], tol=0.01)
|
|
|
|
def test_constrained_layout10():
|
|
|
|
'Test for handling legend outside axis'
|
|
|
|
fig, axs = plt.subplots(2, 2, constrained_layout=True)
|
2018-01-24 08:02:57 +00:00
|
|
|
diff --git a/lib/matplotlib/tests/test_cycles.py b/lib/matplotlib/tests/test_cycles.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index 8184d3eee..73b0f216d 100644
|
2018-01-24 08:02:57 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_cycles.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_cycles.py
|
|
|
|
@@ -10,7 +10,7 @@ from cycler import cycler
|
|
|
|
|
|
|
|
|
|
|
|
@image_comparison(baseline_images=['color_cycle_basic'], remove_text=True,
|
2018-08-17 21:37:11 +00:00
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.008,
|
|
|
|
extensions=['png'])
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_colorcycle_basic():
|
2018-08-14 01:27:10 +00:00
|
|
|
fig, ax = plt.subplots()
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -28,7 +28,7 @@ def test_colorcycle_basic():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
@image_comparison(baseline_images=['marker_cycle', 'marker_cycle'],
|
2018-08-17 21:37:11 +00:00
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.008,
|
|
|
|
remove_text=True, extensions=['png'])
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_marker_cycle():
|
2018-08-14 01:27:10 +00:00
|
|
|
fig, ax = plt.subplots()
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -62,7 +62,7 @@ def test_marker_cycle():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
@image_comparison(baseline_images=['lineprop_cycle_basic'], remove_text=True,
|
2018-08-17 21:37:11 +00:00
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.009,
|
|
|
|
extensions=['png'])
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_linestylecycle_basic():
|
2018-08-14 01:27:10 +00:00
|
|
|
fig, ax = plt.subplots()
|
2018-03-31 07:28:44 +00:00
|
|
|
diff --git a/lib/matplotlib/tests/test_figure.py b/lib/matplotlib/tests/test_figure.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index 7cb5af621..128cae5ec 100644
|
2018-03-31 07:28:44 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_figure.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_figure.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -14,7 +14,7 @@ import pytest
|
2018-03-31 07:28:44 +00:00
|
|
|
|
|
|
|
|
2018-08-17 21:37:11 +00:00
|
|
|
@image_comparison(baseline_images=['figure_align_labels'],
|
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0))
|
|
|
|
+ tol=0.01)
|
2018-03-31 07:28:44 +00:00
|
|
|
def test_align_labels():
|
|
|
|
# Check the figure.align_labels() command
|
|
|
|
fig = plt.figure(tight_layout=True)
|
2018-01-24 08:02:57 +00:00
|
|
|
diff --git a/lib/matplotlib/tests/test_image.py b/lib/matplotlib/tests/test_image.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index 893108258..cf7975071 100644
|
2018-01-24 08:02:57 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_image.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_image.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -757,7 +757,7 @@ def test_imshow_endianess():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
@image_comparison(baseline_images=['imshow_masked_interpolation'],
|
2018-08-17 21:37:11 +00:00
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.006,
|
|
|
|
remove_text=True, style='mpl20')
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_imshow_masked_interpolation():
|
|
|
|
|
|
|
|
diff --git a/lib/matplotlib/tests/test_legend.py b/lib/matplotlib/tests/test_legend.py
|
2018-09-18 08:51:42 +00:00
|
|
|
index d508d6f41..9147ef336 100644
|
2018-01-24 08:02:57 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_legend.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_legend.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -108,7 +108,7 @@ def test_multiple_keys():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
@image_comparison(baseline_images=['rgba_alpha'],
|
2018-08-17 21:37:11 +00:00
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.007,
|
|
|
|
extensions=['png'], remove_text=True)
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_alpha_rgba():
|
|
|
|
import matplotlib.pyplot as plt
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -120,7 +120,7 @@ def test_alpha_rgba():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
@image_comparison(baseline_images=['rcparam_alpha'],
|
2018-08-17 21:37:11 +00:00
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.007,
|
|
|
|
extensions=['png'], remove_text=True)
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_alpha_rcparam():
|
|
|
|
import matplotlib.pyplot as plt
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -149,7 +149,7 @@ def test_fancy():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
|
2018-08-17 21:37:11 +00:00
|
|
|
@image_comparison(baseline_images=['framealpha'], remove_text=True,
|
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0))
|
|
|
|
+ tol=0.018)
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_framealpha():
|
|
|
|
x = np.linspace(1, 100, 100)
|
|
|
|
y = x
|
|
|
|
diff --git a/lib/matplotlib/tests/test_pickle.py b/lib/matplotlib/tests/test_pickle.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index 9cb806c6f..91774abfd 100644
|
2018-01-24 08:02:57 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_pickle.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_pickle.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -44,7 +44,7 @@ def test_simple():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
2018-03-31 07:28:44 +00:00
|
|
|
@image_comparison(baseline_images=['multi_pickle'],
|
2018-01-24 08:02:57 +00:00
|
|
|
extensions=['png'], remove_text=True,
|
2018-08-17 21:37:11 +00:00
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.004,
|
|
|
|
style='mpl20')
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_complete():
|
2018-03-31 07:28:44 +00:00
|
|
|
fig = plt.figure('Figure with a label?', figsize=(10, 6))
|
2018-01-24 08:02:57 +00:00
|
|
|
diff --git a/lib/matplotlib/tests/test_scale.py b/lib/matplotlib/tests/test_scale.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index ebe5c4de9..2999b624d 100644
|
2018-01-24 08:02:57 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_scale.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_scale.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -99,7 +99,7 @@ def test_logscale_transform_repr():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
@image_comparison(baseline_images=['logscale_nonpos_values'], remove_text=True,
|
2018-08-17 21:37:11 +00:00
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.008,
|
|
|
|
extensions=['png'], style='mpl20')
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_logscale_nonpos_values():
|
|
|
|
np.random.seed(19680801)
|
|
|
|
diff --git a/lib/matplotlib/tests/test_streamplot.py b/lib/matplotlib/tests/test_streamplot.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index e261513df..c8c8faf99 100644
|
2018-01-24 08:02:57 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_streamplot.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_streamplot.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -49,7 +49,7 @@ def test_colormap():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
|
2018-08-17 21:37:11 +00:00
|
|
|
@image_comparison(baseline_images=['streamplot_linewidth'],
|
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.002,
|
|
|
|
remove_text=True, style='mpl20')
|
2018-01-24 08:02:57 +00:00
|
|
|
def test_linewidth():
|
|
|
|
X, Y, U, V = velocity_field()
|
|
|
|
diff --git a/lib/matplotlib/tests/test_units.py b/lib/matplotlib/tests/test_units.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index 20840d7b8..ddddcdc44 100644
|
2018-01-24 08:02:57 +00:00
|
|
|
--- a/lib/matplotlib/tests/test_units.py
|
|
|
|
+++ b/lib/matplotlib/tests/test_units.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -41,7 +41,7 @@ class Quantity(object):
|
2018-01-24 08:02:57 +00:00
|
|
|
# Tests that the conversion machinery works properly for classes that
|
|
|
|
# work as a facade over numpy arrays (like pint)
|
2018-08-17 21:37:11 +00:00
|
|
|
@image_comparison(baseline_images=['plot_pint'],
|
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.003,
|
2018-01-24 08:02:57 +00:00
|
|
|
extensions=['png'], remove_text=False, style='mpl20')
|
|
|
|
def test_numpy_facade():
|
|
|
|
# Create an instance of the conversion interface and
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -86,7 +86,7 @@ def test_numpy_facade():
|
2018-01-24 08:02:57 +00:00
|
|
|
|
|
|
|
# Tests gh-8908
|
2018-08-17 21:37:11 +00:00
|
|
|
@image_comparison(baseline_images=['plot_masked_units'],
|
|
|
|
- tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
|
|
|
|
+ tol=0.007,
|
2018-01-24 08:02:57 +00:00
|
|
|
extensions=['png'], remove_text=True, style='mpl20')
|
|
|
|
def test_plot_masked_units():
|
|
|
|
data = np.linspace(-5, 5)
|
2018-03-31 07:28:44 +00:00
|
|
|
diff --git a/lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py b/lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py
|
2018-08-17 21:37:11 +00:00
|
|
|
index 0f5e86322..83c1054a4 100644
|
2018-03-31 07:28:44 +00:00
|
|
|
--- a/lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py
|
|
|
|
+++ b/lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py
|
2018-08-17 21:37:11 +00:00
|
|
|
@@ -85,7 +85,7 @@ def test_custom_transform():
|
2018-03-31 07:28:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
@image_comparison(baseline_images=['polar_box'],
|
2018-08-17 21:37:11 +00:00
|
|
|
- tol={'aarch64': 0.04}.get(platform.machine(), 0.03),
|
|
|
|
+ tol=0.04,
|
|
|
|
extensions=['png'], style='default')
|
2018-03-31 07:28:44 +00:00
|
|
|
def test_polar_box():
|
|
|
|
fig = plt.figure(figsize=(5, 5))
|
2018-01-24 08:02:57 +00:00
|
|
|
--
|
2018-06-22 07:50:26 +00:00
|
|
|
2.17.1
|
2018-01-24 08:02:57 +00:00
|
|
|
|