3fa499b
From cff0aeead7f2e1b570613dbec8c67d0f715fc87e Mon Sep 17 00:00:00 2001
9046bbb
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
e6f3591
Date: Fri, 14 Feb 2020 06:05:42 -0500
e6f3591
Subject: [PATCH 2/4] Set FreeType version to 2.10.1 and update tolerances.
9046bbb
9046bbb
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
9046bbb
---
1f37c6a
 lib/matplotlib/__init__.py                     |  2 +-
1f37c6a
 lib/matplotlib/tests/test_axes.py              |  6 +++---
1f37c6a
 lib/matplotlib/tests/test_constrainedlayout.py |  2 +-
1f37c6a
 lib/matplotlib/tests/test_tightlayout.py       | 10 +++++-----
e6f3591
 setupext.py                                    |  2 +-
e6f3591
 5 files changed, 11 insertions(+), 11 deletions(-)
9046bbb
9046bbb
diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py
3fa499b
index d2bd48800..ff06bf049 100644
9046bbb
--- a/lib/matplotlib/__init__.py
9046bbb
+++ b/lib/matplotlib/__init__.py
3fa499b
@@ -1313,7 +1313,7 @@ default_test_modules = [
e6f3591
 def _init_tests():
9046bbb
     # The version of FreeType to install locally for running the
9046bbb
     # tests.  This must match the value in `setupext.py`
9046bbb
-    LOCAL_FREETYPE_VERSION = '2.6.1'
e6f3591
+    LOCAL_FREETYPE_VERSION = '2.10.1'
9046bbb
 
9046bbb
     from matplotlib import ft2font
9046bbb
     if (ft2font.__freetype_version__ != LOCAL_FREETYPE_VERSION or
9046bbb
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py
3fa499b
index 93548b279..de146a527 100644
9046bbb
--- a/lib/matplotlib/tests/test_axes.py
9046bbb
+++ b/lib/matplotlib/tests/test_axes.py
3fa499b
@@ -6405,7 +6405,7 @@ def test_normal_axes():
9046bbb
     ]
9046bbb
     for nn, b in enumerate(bbaxis):
9046bbb
         targetbb = mtransforms.Bbox.from_bounds(*target[nn])
9046bbb
-        assert_array_almost_equal(b.bounds, targetbb.bounds, decimal=2)
9046bbb
+        assert_array_almost_equal(b.bounds, targetbb.bounds, decimal=0)
9046bbb
 
9046bbb
     target = [
9046bbb
         [150.0, 119.999, 930.0, 11.111],
3fa499b
@@ -6423,7 +6423,7 @@ def test_normal_axes():
9046bbb
 
9046bbb
     target = [85.5138, 75.88888, 1021.11, 1017.11]
9046bbb
     targetbb = mtransforms.Bbox.from_bounds(*target)
9046bbb
-    assert_array_almost_equal(bbtb.bounds, targetbb.bounds, decimal=2)
9046bbb
+    assert_array_almost_equal(bbtb.bounds, targetbb.bounds, decimal=0)
9046bbb
 
9046bbb
     # test that get_position roundtrips to get_window_extent
9046bbb
     axbb = ax.get_position().transformed(fig.transFigure).bounds
3fa499b
@@ -6548,7 +6548,7 @@ def test_get_tightbbox_polar():
9046bbb
     fig.canvas.draw()
9046bbb
     bb = ax.get_tightbbox(fig.canvas.get_renderer())
9046bbb
     assert_allclose(bb.extents,
9046bbb
-        [107.7778,  29.2778, 539.7847, 450.7222], rtol=1e-03)
9046bbb
+        [107.7778,  29.2778, 539.7847, 450.7222], rtol=1)
9046bbb
 
9046bbb
 
9046bbb
 @check_figures_equal(extensions=["png"])
1f37c6a
diff --git a/lib/matplotlib/tests/test_constrainedlayout.py b/lib/matplotlib/tests/test_constrainedlayout.py
e6f3591
index c91037eae..75311e70e 100644
1f37c6a
--- a/lib/matplotlib/tests/test_constrainedlayout.py
1f37c6a
+++ b/lib/matplotlib/tests/test_constrainedlayout.py
e6f3591
@@ -399,4 +399,4 @@ def test_hidden_axes():
1f37c6a
     extents1 = np.copy(axs[0, 0].get_position().extents)
1f37c6a
 
1f37c6a
     np.testing.assert_allclose(extents1,
1f37c6a
-        [0.045552, 0.548288, 0.47319, 0.982638], rtol=1e-5)
1f37c6a
+        [0.045552, 0.548288, 0.47319, 0.982638], rtol=1e-2)
9046bbb
diff --git a/lib/matplotlib/tests/test_tightlayout.py b/lib/matplotlib/tests/test_tightlayout.py
e6f3591
index 377dfb649..6e6d8afe2 100644
9046bbb
--- a/lib/matplotlib/tests/test_tightlayout.py
9046bbb
+++ b/lib/matplotlib/tests/test_tightlayout.py
e6f3591
@@ -172,12 +172,12 @@ def test_outward_ticks():
9046bbb
     plt.tight_layout()
9046bbb
     # These values were obtained after visual checking that they correspond
9046bbb
     # to a tight layouting that did take the ticks into account.
9046bbb
-    ans = [[[0.091, 0.607], [0.433, 0.933]],
9046bbb
-           [[0.579, 0.607], [0.922, 0.933]],
9046bbb
-           [[0.091, 0.140], [0.433, 0.466]],
9046bbb
-           [[0.579, 0.140], [0.922, 0.466]]]
9046bbb
+    ans = [[[0.09, 0.61], [0.43, 0.93]],
9046bbb
+           [[0.58, 0.61], [0.92, 0.93]],
9046bbb
+           [[0.09, 0.14], [0.43, 0.47]],
9046bbb
+           [[0.58, 0.14], [0.92, 0.47]]]
9046bbb
     for nn, ax in enumerate(fig.axes):
9046bbb
-        assert_array_equal(np.round(ax.get_position().get_points(), 3),
9046bbb
+        assert_array_equal(np.round(ax.get_position().get_points(), 2),
9046bbb
                            ans[nn])
9046bbb
 
9046bbb
 
9046bbb
diff --git a/setupext.py b/setupext.py
e6f3591
index 09cd6bbd7..c3c96d4e0 100644
9046bbb
--- a/setupext.py
9046bbb
+++ b/setupext.py
e6f3591
@@ -152,7 +152,7 @@ _freetype_hashes = {
9046bbb
 # version.  It must match the value in
9046bbb
 # lib/matplotlib.__init__.py and also needs to be changed below in the
9046bbb
 # embedded windows build script (grep for "REMINDER" in this file)
9046bbb
-LOCAL_FREETYPE_VERSION = '2.6.1'
e6f3591
+LOCAL_FREETYPE_VERSION = '2.10.1'
9046bbb
 LOCAL_FREETYPE_HASH = _freetype_hashes.get(LOCAL_FREETYPE_VERSION, 'unknown')
9046bbb
 
9046bbb
 
9046bbb
-- 
e6f3591
2.21.1
9046bbb