8000 TST: Expand some ARM tolerances to Apple Silicon as well · matplotlib/matplotlib@5c8012d · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c8012d

Browse files
committed
TST: Expand some ARM tolerances to Apple Silicon as well
1 parent 2084d86 commit 5c8012d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ def test_imshow():
12161216

12171217
@image_comparison(
12181218
['imshow_clip'], style='mpl20',
1219-
tol=1.24 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0)
1219+
tol=1.24 if platform.machine() in ('aarch64', 'arm64', 'ppc64le', 's390x') else 0)
12201220
def test_imshow_clip():
12211221
# As originally reported by Gellule Xg <gellule.xg@free.fr>
12221222
# use former defaults to match existing baseline image
@@ -2613,7 +2613,7 @@ def test_contour_hatching():
26132613

26142614
@image_comparison(
26152615
['contour_colorbar'], style='mpl20',
2616-
tol=0.54 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0)
2616+
tol=0.54 if platform.machine() in ('aarch64', 'arm64', 'ppc64le', 's390x') else 0)
26172617
def test_contour_colorbar():
26182618
x, y, z = contour_dat()
26192619

lib/matplotlib/tests/test_contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def test_contourf_log_extension(split_collections):
442442
@pytest.mark.parametrize("split_collections", [False, True])
443443
@image_comparison(
444444
['contour_addlines.png'], remove_text=True, style='mpl20',
445-
tol=0.15 if platform.machine() in ('aarch64', 'ppc64le', 's390x')
445+
tol=0.15 if platform.machine() in ('aarch64', 'arm64', 'ppc64le', 's390x')
446446
else 0.03)
447447
# tolerance is because image changed minutely when tick finding on
448448
# colorbars was cleaned up...

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def test_bar3d_lightsource():
222222

223223
@mpl3d_image_comparison(
224224
['contour3d.png'], style='mpl20',
225-
tol=0.002 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0)
225+
tol=0.002 if platform.machine() in ('aarch64', 'arm64', 'ppc64le', 's390x') else 0)
226226
def test_contour3d():
227227
plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated
228228
fig = plt.figure()

0 commit comments

Comments
 (0)
0