Blame 0001-Increase-tolerance-for-new-FreeType.patch

de0b841
From fd80f1bd65e1fde4f2505dd0b2065b21659d12a4 Mon Sep 17 00:00:00 2001
867d923
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
867d923
Date: Mon, 16 Jul 2018 00:52:13 -0400
de0b841
Subject: [PATCH] Increase tolerance for new FreeType.
867d923
867d923
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
867d923
---
867d923
 tests/test_pytest_mpl.py | 9 +++++----
867d923
 1 file changed, 5 insertions(+), 4 deletions(-)
867d923
867d923
diff --git a/tests/test_pytest_mpl.py b/tests/test_pytest_mpl.py
de0b841
index 1fa0379..064f39b 100644
867d923
--- a/tests/test_pytest_mpl.py
867d923
+++ b/tests/test_pytest_mpl.py
867d923
@@ -23,7 +23,7 @@ baseline_dir_remote = 'http://matplotlib.github.io/pytest-mpl/' + baseline_subdi
867d923
 WIN = sys.platform.startswith('win')
867d923
 
867d923
 
867d923
-@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local)
867d923
+@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local, tolerance=7.1)
867d923
 def test_succeeds():
867d923
     fig = plt.figure()
867d923
     ax = fig.add_subplot(1, 1, 1)
867d923
@@ -52,7 +52,8 @@ def test_succeeds_faulty_mirror():
867d923
 
867d923
 class TestClass(object):
867d923
 
867d923
-    @pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local)
867d923
+    @pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
867d923
+                                   tolerance=7.1)
867d923
     def test_succeeds(self):
867d923
         fig = plt.figure()
867d923
         ax = fig.add_subplot(1, 1, 1)
867d923
@@ -210,7 +211,7 @@ class TestClassWithSetup(object):
867d923
         self.x = [1, 2, 3]
867d923
 
867d923
     @pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
867d923
-                                   filename='test_succeeds.png')
867d923
+                                   filename='test_succeeds.png', tolerance=7.1)
867d923
     def test_succeeds(self):
867d923
         fig = plt.figure()
867d923
         ax = fig.add_subplot(1, 1, 1)
867d923
-- 
867d923
2.17.1
867d923