Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2c0e34

Browse files
committed
Increase tolerance for ppc64le and s390x.
These are mostly the same as the aarch64 increased tolerances.
1 parent 1dee760 commit c2c0e34

File tree

11 files changed

+30
-15
lines changed

11 files changed

+30
-15
lines changed

lib/matplotlib/tests/test_arrow_patches.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def __prepare_fancyarrow_dpi_cor_test():
6767

6868

6969
@image_comparison(['fancyarrow_dpi_cor_100dpi.png'], remove_text=True,
70-
tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
70+
tol={'aarch64': 0.02, 'ppc64le': 0.02,
71+
's390x': 0.02}.get(platform.machine(), 0),
7172
savefig_kwarg=dict(dpi=100))
7273
def test_fancyarrow_dpi_cor_100dpi():
7374
"""
@@ -82,7 +83,8 @@ def test_fancyarrow_dpi_cor_100dpi():
8283

8384

8485
@image_comparison(['fancyarrow_dpi_cor_200dpi.png'], remove_text=True,
85-
tol={'aarch64': 0.02}.get(platform.machine(), 0.0),
86+
tol={'aarch64': 0.02, 'ppc64le': 0.02,
87+
's390x': 0.02}.get(platform.machine(), 0),
8688
savefig_kwarg=dict(dpi=200))
8789
def test_fancyarrow_dpi_cor_200dpi():
8890
"""

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3738,7 +3738,8 @@ def test_vertex_markers():
37383738

37393739

37403740
@image_comparison(['vline_hline_zorder', 'errorbar_zorder'],
3741-
tol={'aarch64': 0.02}.get(platform.machine(), 0.0))
3741+
tol={'aarch64': 0.02, 'ppc64le': 0.02,
3742+
's390x': 0.02}.get(platform.machine(), 0))
37423743
def test_eb_line_zorder():
37433744
x = list(range(10))
37443745

lib/matplotlib/tests/test_contour.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ def test_contour_datetime_axis():
191191

192192
@image_comparison(['contour_test_label_transforms.png'],
193193
remove_text=True, style='mpl20',
194-
tol={'aarch64': 0.08}.get(platform.machine(), 0))
194+
tol={'aarch64': 0.08, 'ppc64le': 0.08,
195+
's390x': 0.08}.get(platform.machine(), 0))
195196
def test_labels():
196197
# Adapted from pylab_examples example code: contour_demo.py
197198
# see issues #2475, #2843, and #2818 for explanation

lib/matplotlib/tests/test_figure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323

2424
@image_comparison(['figure_align_labels'],
25-
tol={'aarch64': 0.01}.get(platform.machine(), 0))
25+
tol={'aarch64': 0.01, 'ppc64le': 0.01,
26+
's390x': 0.01}.get(platform.machine(), 0))
2627
def test_align_labels():
2728
fig = plt.figure(tight_layout=True)
2829
gs = gridspec.GridSpec(3, 3)

lib/matplotlib/tests/test_image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,8 @@ def test_imshow_endianess():
861861

862862

863863
@image_comparison(['imshow_masked_interpolation'],
864-
tol={'aarch64': 0.01}.get(platform.machine(), 0),
864+
tol={'aarch64': 0.01, 'ppc64le': 0.01,
865+
's390x': 0.01}.get(platform.machine(), 0),
865866
remove_text=True, style='mpl20')
866867
def test_imshow_masked_interpolation():
867868

lib/matplotlib/tests/test_legend.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def test_multiple_keys():
105105

106106

107107
@image_comparison(['rgba_alpha.png'], remove_text=True,
108-
tol={'aarch64': 0.01}.get(platform.machine(), 0))
108+
tol={'aarch64': 0.01, 'ppc64le': 0.01,
109+
's390x': 0.01}.get(platform.machine(), 0))
109110
def test_alpha_rgba():
110111
fig, ax = plt.subplots(1, 1)
111112
ax.plot(range(10), lw=5)
@@ -114,7 +115,8 @@ def test_alpha_rgba():
114115

115116

116117
@image_comparison(['rcparam_alpha.png'], remove_text=True,
117-
tol={'aarch64': 0.01}.get(platform.machine(), 0))
118+
tol={'aarch64': 0.01, 'ppc64le': 0.01,
119+
's390x': 0.01}.get(platform.machine(), 0))
118120
def test_alpha_rcparam():
119121
fig, ax = plt.subplots(1, 1)
120122
ax.plot(range(10), lw=5)
@@ -140,7 +142,8 @@ def test_fancy():
140142

141143

142144
@image_comparison(['framealpha'], remove_text=True,
143-
tol={'aarch64': 0.02}.get(platform.machine(), 0.0))
145+
tol={'aarch64': 0.02, 'ppc64le': 0.02,
146+
's390x': 0.02}.get(platform.machine(), 0))
144147
def test_framealpha():
145148
x = np.linspace(1, 100, 100)
146149
y = x

lib/matplotlib/tests/test_pickle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def test_simple():
4141

4242

4343
@image_comparison(['multi_pickle.png'], remove_text=True, style='mpl20',
44-
tol={'aarch64': 0.082}.get(platform.machine(), 0.0))
44+
tol={'aarch64': 0.082, 'ppc64le': 0.082,
45+
's390x': 0.082}.get(platform.machine(), 0))
4546
def test_complete():
4647
fig = plt.figure('Figure with a label?', figsize=(10, 6))
4748

lib/matplotlib/tests/test_polar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111

1212
@image_comparison(['polar_axes'], style='default',
13-
tol={'aarch64': 0.01}.get(platform.machine(), 0))
13+
tol={'aarch64': 0.01, 'ppc64le': 0.01,
14+
's390x': 0.01}.get(platform.machine(), 0))
1415
def test_polar_annotations():
1516
# You can specify the xypoint and the xytext in different positions and
1617
# coordinate systems, and optionally turn on a connecting line and mark the

lib/matplotlib/tests/test_units.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def default_units(value, axis):
7474
# Tests that the conversion machinery works properly for classes that
7575
# work as a facade over numpy arrays (like pint)
7676
@image_comparison(['plot_pint.png'], remove_text=False, style='mpl20',
77-
tol={'aarch64': 0.01}.get(platform.machine(), 0))
77+
tol={'aarch64': 0.01, 'ppc64le': 0.01,
78+
's390x': 0.01}.get(platform.machine(), 0))
7879
def test_numpy_facade(quantity_converter):
7980
# use former defaults to match existing baseline image
8081
plt.rcParams['axes.formatter.limits'] = -7, 7
@@ -101,7 +102,8 @@ def test_numpy_facade(quantity_converter):
101102

102103
# Tests gh-8908
103104
@image_comparison(['plot_masked_units.png'], remove_text=True, style='mpl20',
104-
tol={'aarch64': 0.01}.get(platform.machine(), 0))
105+
tol={'aarch64': 0.01, 'ppc64le': 0.01,
106+
's390x': 0.01}.get(platform.machine(), 0))
105107
def test_plot_masked_units():
106108
data = np.linspace(-5, 5)
107109
data_masked = np.ma.array(data, mask=(data > -2) & (data < 2))

lib/mpl_toolkits/tests/test_axes_grid1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ def test_zooming_with_inverted_axes():
331331

332332

333333
@image_comparison(['anchored_direction_arrows.png'],
334-
tol={'aarch64': 0.01}.get(platform.machine(), 0))
334+
tol={'aarch64': 0.01, 'ppc64le': 0.01,
335+
's390x': 0.01}.get(platform.machine(), 0))
335336
def test_anchored_direction_arrows():
336337
fig, ax = plt.subplots()
337338
ax.imshow(np.zeros((10, 10)), interpolation='nearest')

lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818

1919
@image_comparison(['custom_transform.png'], style='default',
20-
tol={'aarch64': 0.034}.get(platform.machine(), 0.03))
20+
tol={'aarch64': 0.034, 'ppc64le': 0.034,
21+
's390x': 0.034}.get(platform.machine(), 0.03))
2122
def test_custom_transform():
2223
class MyTransform(Transform):
2324
input_dims = output_dims = 2

0 commit comments

Comments
 (0)