|
1 | 1 | import io |
2 | 2 | from pathlib import Path |
| 3 | +import platform |
3 | 4 | import re |
4 | 5 | import shlex |
5 | 6 | from xml.etree import ElementTree as ET |
@@ -198,7 +199,8 @@ def baseline_images(request, fontset, index, text): |
198 | 199 | @pytest.mark.parametrize( |
199 | 200 | 'fontset', ['cm', 'stix', 'stixsans', 'dejavusans', 'dejavuserif']) |
200 | 201 | @pytest.mark.parametrize('baseline_images', ['mathtext'], indirect=True) |
201 | | -@image_comparison(baseline_images=None) |
| 202 | +@image_comparison(baseline_images=None, |
| 203 | + tol=0.011 if platform.machine() in ('ppc64le', 's390x') else 0) |
202 | 204 | def test_mathtext_rendering(baseline_images, fontset, index, text): |
203 | 205 | mpl.rcParams['mathtext.fontset'] = fontset |
204 | 206 | fig = plt.figure(figsize=(5.25, 0.75)) |
@@ -239,7 +241,8 @@ def test_mathtext_rendering_lightweight(baseline_images, fontset, index, text): |
239 | 241 | @pytest.mark.parametrize( |
240 | 242 | 'fontset', ['cm', 'stix', 'stixsans', 'dejavusans', 'dejavuserif']) |
241 | 243 | @pytest.mark.parametrize('baseline_images', ['mathfont'], indirect=True) |
242 | | -@image_comparison(baseline_images=None, extensions=['png']) |
| 244 | +@image_comparison(baseline_images=None, extensions=['png'], |
| 245 | + tol=0.011 if platform.machine() in ('ppc64le', 's390x') else 0) |
243 | 246 | def test_mathfont_rendering(baseline_images, fontset, index, text): |
244 | 247 | mpl.rcParams['mathtext.fontset'] = fontset |
245 | 248 | fig = plt.figure(figsize=(5.25, 0.75)) |
|
0 commit comments