diff --git a/lib/matplotlib/tests/test_backend_pgf.py b/lib/matplotlib/tests/test_backend_pgf.py index c635b280ef84..4868609f84fd 100644 --- a/lib/matplotlib/tests/test_backend_pgf.py +++ b/lib/matplotlib/tests/test_backend_pgf.py @@ -168,7 +168,9 @@ def test_pathclip(): @needs_xelatex @pytest.mark.backend('pgf') @image_comparison(['pgf_mixedmode.pdf'], style='default', - tol={'aarch64': 1.086}.get(platform.machine(), 0.0)) + tol={'aarch64': 1.086, 'x86_64': 1.086}.get( + platform.machine(), 0.0 + )) def test_mixedmode(): rc_xelatex = {'font.family': 'serif', 'pgf.rcfonts': False} diff --git a/lib/matplotlib/tests/test_usetex.py b/lib/matplotlib/tests/test_usetex.py index 1b7b76bfc0f2..36c8515d1e0c 100644 --- a/lib/matplotlib/tests/test_usetex.py +++ b/lib/matplotlib/tests/test_usetex.py @@ -12,7 +12,9 @@ @image_comparison(baseline_images=['test_usetex'], extensions=['pdf', 'png'], - tol={'aarch64': 2.868}.get(platform.machine(), 0.3)) + tol={'aarch64': 2.868, 'x86_64': 2.868}.get( + platform.machine(), 0.3 + )) def test_usetex(): mpl.rcParams['text.usetex'] = True fig = plt.figure()