Skip to content

Commit c1f07ba

Browse files
authored
Merge pull request matplotlib#28194 from meeseeksmachine/auto-backport-of-pr-28188-on-v3.9.x
Backport PR matplotlib#28188 on branch v3.9.x ([TST] Bump some tolerances for Macos ARM)
2 parents 6a98b98 + ae5f9c1 commit c1f07ba

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Diff for: lib/matplotlib/tests/test_axes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5829,7 +5829,7 @@ def test_pie_linewidth_0():
58295829
plt.axis('equal')
58305830

58315831

5832-
@image_comparison(['pie_center_radius.png'], style='mpl20', tol=0.007)
5832+
@image_comparison(['pie_center_radius.png'], style='mpl20', tol=0.01)
58335833
def test_pie_center_radius():
58345834
# The slices will be ordered and plotted counter-clockwise.
58355835
labels = 'Frogs', 'Hogs', 'Dogs', 'Logs'

Diff for: lib/matplotlib/tests/test_lines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_set_drawstyle():
185185

186186
@image_comparison(
187187
['line_collection_dashes'], remove_text=True, style='mpl20',
188-
tol=0.65 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0)
188+
tol=0 if platform.machine() == 'x86_64' else 0.65)
189189
def test_set_line_coll_dash_image():
190190
fig, ax = plt.subplots()
191191
np.random.seed(0)

Diff for: lib/matplotlib/tests/test_patheffects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_patheffect1():
3030

3131

3232
@image_comparison(['patheffect2'], remove_text=True, style='mpl20',
33-
tol=0.052 if platform.machine() == 'arm64' else 0)
33+
tol=0.06 if platform.machine() == 'arm64' else 0)
3434
def test_patheffect2():
3535

3636
ax2 = plt.subplot()

Diff for: lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def test_axes3d_repr():
113113
"title={'center': 'title'}, xlabel='x', ylabel='y', zlabel='z'>")
114114

115115

116-
@mpl3d_image_comparison(['axes3d_primary_views.png'], style='mpl20')
116+
@mpl3d_image_comparison(['axes3d_primary_views.png'], style='mpl20',
117+
tol=0.05 if platform.machine() == "arm64" else 0)
117118
def test_axes3d_primary_views():
118119
# (elev, azim, roll)
119120
views = [(90, -90, 0), # XY
@@ -1589,7 +1590,7 @@ def test_errorbar3d_errorevery():
15891590

15901591

15911592
@mpl3d_image_comparison(['errorbar3d.png'], style='mpl20',
1592-
tol=0.014 if platform.machine() == 'arm64' else 0)
1593+
tol=0.02 if platform.machine() == 'arm64' else 0)
15931594
def test_errorbar3d():
15941595
"""Tests limits, color styling, and legend for 3D errorbars."""
15951596
fig = plt.figure()

0 commit comments

Comments
 (0)