summaryrefslogtreecommitdiffstats
path: root/dev-python/matplotlib/files/matplotlib-1.5.3-freetype-spurious-failure.patch
blob: bc6891a5f2521d62ff3c5b30c571af03996d8a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Increase the tolerance margin in order to pass tests caused by
freetype producing unreproducible images across different versions.
See also: https://github.com/matplotlib/matplotlib/issues/2667

--- a/lib/matplotlib/tests/test_mathtext.py
+++ b/lib/matplotlib/tests/test_mathtext.py
@@ -158,7 +158,7 @@
 def make_set(basename, fontset, tests, extensions=None):
     def make_test(filename, test):
         @image_comparison(baseline_images=[filename], extensions=extensions,
-                          tol=32)
+                          tol=40)
         def single_test():
             matplotlib.rcParams['mathtext.fontset'] = fontset
             fig = plt.figure(figsize=(5.25, 0.75))
--- a/lib/matplotlib/tests/test_text.py
+++ b/lib/matplotlib/tests/test_text.py
@@ -18,7 +18,7 @@
 from matplotlib.backends.backend_agg import RendererAgg
 
 
-@image_comparison(baseline_images=['font_styles'])
+@image_comparison(baseline_images=['font_styles'], tol=20)
 def test_font_styles():
     from matplotlib import _get_data_path
     data_path = _get_data_path()