diff options
author | Sean Vig <sean.v.775@gmail.com> | 2017-03-19 20:53:20 -0400 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-06-03 12:27:55 +0200 |
commit | 299f1dd7ed390a82802f8f58c270181e52346c57 (patch) | |
tree | d91dc3865fc0f4d8adf15a2ed36f02870e1446c6 /dev-python/matplotlib/files | |
parent | dev-python/subprocess32: Add new package (diff) | |
download | gentoo-299f1dd7ed390a82802f8f58c270181e52346c57.tar.gz gentoo-299f1dd7ed390a82802f8f58c270181e52346c57.tar.bz2 gentoo-299f1dd7ed390a82802f8f58c270181e52346c57.zip |
dev-python/matplotlib: Version bump to 2.0.2, #608062
Closes: https://github.com/gentoo/gentoo/pull/4249
Diffstat (limited to 'dev-python/matplotlib/files')
-rw-r--r-- | dev-python/matplotlib/files/matplotlib-2.0.2-freetype-spurious-failure.patch | 27 | ||||
-rw-r--r-- | dev-python/matplotlib/files/matplotlib-2.0.2-nose-fixes.patch | 13 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/matplotlib/files/matplotlib-2.0.2-freetype-spurious-failure.patch b/dev-python/matplotlib/files/matplotlib-2.0.2-freetype-spurious-failure.patch new file mode 100644 index 000000000000..b6450a83fed0 --- /dev/null +++ b/dev-python/matplotlib/files/matplotlib-2.0.2-freetype-spurious-failure.patch @@ -0,0 +1,27 @@ +diff --git a/lib/matplotlib/testing/decorators.py b/lib/matplotlib/testing/decorators.py +index 5e738ad9b..78b3f8169 100644 +--- a/lib/matplotlib/testing/decorators.py ++++ b/lib/matplotlib/testing/decorators.py +@@ -266,7 +266,7 @@ class ImageComparisonTest(CleanupTest): + + yield do_test, fignum, actual_fname, expected_fname + +-def image_comparison(baseline_images=None, extensions=None, tol=0, ++def image_comparison(baseline_images=None, extensions=None, tol=20, + freetype_version=None, remove_text=False, + savefig_kwarg=None, style='_classic_test'): + """ +diff --git a/lib/matplotlib/tests/test_mathtext.py b/lib/matplotlib/tests/test_mathtext.py +index 39f5d7ef1..7681e5cb9 100644 +--- a/lib/matplotlib/tests/test_mathtext.py ++++ b/lib/matplotlib/tests/test_mathtext.py +@@ -159,7 +159,8 @@ for fonts, chars in font_test_specs: + + def make_set(basename, fontset, tests, extensions=None): + def make_test(filename, test): +- @image_comparison(baseline_images=[filename], extensions=extensions) ++ @image_comparison(baseline_images=[filename], extensions=extensions, ++ tol=40) + def single_test(): + matplotlib.rcParams['mathtext.fontset'] = fontset + fig = plt.figure(figsize=(5.25, 0.75)) diff --git a/dev-python/matplotlib/files/matplotlib-2.0.2-nose-fixes.patch b/dev-python/matplotlib/files/matplotlib-2.0.2-nose-fixes.patch new file mode 100644 index 000000000000..ab1181bd0176 --- /dev/null +++ b/dev-python/matplotlib/files/matplotlib-2.0.2-nose-fixes.patch @@ -0,0 +1,13 @@ +diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py +index 530c889a9..8231c2bb8 100644 +--- a/lib/matplotlib/__init__.py ++++ b/lib/matplotlib/__init__.py +@@ -1609,7 +1609,7 @@ def test(verbosity=1): + + # store the old values before overriding + plugins = _get_extra_test_plugins() +- plugins.extend([plugin() for plugin in nose.plugins.builtin.plugins]) ++ plugins.extend(nose.plugins.builtin.plugins) + + manager = PluginManager(plugins=[x() for x in plugins]) + config = nose.config.Config(verbosity=verbosity, plugins=manager) |