Skip to content

Commit 191ee22

Browse files
authored
Merge pull request #16002 from nschloe/relax-test-tolerance
relax two test tolerances on x86_64
2 parents 436eb4a + c74ee7c commit 191ee22

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/matplotlib/tests/test_backend_pgf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ def test_pathclip():
168168
@needs_xelatex
169169
@pytest.mark.backend('pgf')
170170
@image_comparison(['pgf_mixedmode.pdf'], style='default',
171-
tol={'aarch64': 1.086}.get(platform.machine(), 0.0))
171+
tol={'aarch64': 1.086, 'x86_64': 1.086}.get(
172+
platform.machine(), 0.0
173+
))
172174
def test_mixedmode():
173175
rc_xelatex = {'font.family': 'serif',
174176
'pgf.rcfonts': False}

lib/matplotlib/tests/test_usetex.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
@image_comparison(baseline_images=['test_usetex'],
1616
extensions=['pdf', 'png'],
17-
tol={'aarch64': 2.868}.get(platform.machine(), 0.3))
17+
tol={'aarch64': 2.868, 'x86_64': 2.868}.get(
18+
platform.machine(), 0.3
19+
))
1820
def test_usetex():
1921
mpl.rcParams['text.usetex'] = True
2022
fig = plt.figure()

0 commit comments

Comments
 (0)