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

Skip to content

Commit 35df4fa

Browse files
authored
Merge pull request #15633 from meeseeksmachine/auto-backport-of-pr-15620-on-v3.2.x
Backport PR #15620 on branch v3.2.x (TST: Increase tolerance of some tests for aarch64)
2 parents 43665e0 + c9836c4 commit 35df4fa

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

lib/matplotlib/tests/test_backend_pgf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import numpy as np
88
import pytest
9+
import platform
910

1011
import matplotlib as mpl
1112
import matplotlib.pyplot as plt
@@ -158,7 +159,8 @@ def test_pathclip():
158159
# test mixed mode rendering
159160
@needs_xelatex
160161
@pytest.mark.backend('pgf')
161-
@image_comparison(['pgf_mixedmode.pdf'], style='default')
162+
@image_comparison(['pgf_mixedmode.pdf'], style='default',
163+
tol={'aarch64': 1.086}.get(platform.machine(), 0.0))
162164
def test_mixedmode():
163165
rc_xelatex = {'font.family': 'serif',
164166
'pgf.rcfonts': False}

lib/matplotlib/tests/test_pickle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_simple():
4040

4141

4242
@image_comparison(['multi_pickle.png'], remove_text=True, style='mpl20',
43-
tol={'aarch64': 0.02}.get(platform.machine(), 0.0))
43+
tol={'aarch64': 0.082}.get(platform.machine(), 0.0))
4444
def test_complete():
4545
fig = plt.figure('Figure with a label?', figsize=(10, 6))
4646

lib/matplotlib/tests/test_usetex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
import platform
23

34
import matplotlib as mpl
45
from matplotlib.testing.decorators import check_figures_equal, image_comparison
@@ -15,7 +16,7 @@ def usetex():
1516

1617
@image_comparison(baseline_images=['test_usetex'],
1718
extensions=['pdf', 'png'],
18-
tol=0.3)
19+
tol={'aarch64': 2.868}.get(platform.machine(), 0.3))
1920
def test_usetex():
2021
fig = plt.figure()
2122
ax = fig.add_subplot(111)

lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py

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

1818

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

0 commit comments

Comments
 (0)