Blame 0003-TST-Don-t-require-LaTeX-or-Inkscape-for-nose-tests.patch
|
|
c9345fa |
From ee4253242cbaf972443ee49c59f056d8957f4f4f Mon Sep 17 00:00:00 2001
|
|
|
c9345fa |
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
c9345fa |
Date: Fri, 6 Oct 2017 20:53:16 -0400
|
|
|
c9345fa |
Subject: [PATCH 3/8] TST: Don't require LaTeX or Inkscape for nose tests.
|
|
|
c9345fa |
|
|
|
c9345fa |
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
c9345fa |
---
|
|
|
c9345fa |
lib/matplotlib/tests/test_compare_images.py | 4 ++++
|
|
|
c9345fa |
1 file changed, 4 insertions(+)
|
|
|
c9345fa |
|
|
|
c9345fa |
diff --git a/lib/matplotlib/tests/test_compare_images.py b/lib/matplotlib/tests/test_compare_images.py
|
|
|
c9345fa |
index 488fae823..f5bb9dda8 100644
|
|
|
c9345fa |
--- a/lib/matplotlib/tests/test_compare_images.py
|
|
|
c9345fa |
+++ b/lib/matplotlib/tests/test_compare_images.py
|
|
|
c9345fa |
@@ -203,6 +203,10 @@ def test_nose_image_comparison(func, kwargs, errors, failures, dots,
|
|
|
c9345fa |
assert failures[self.failure_count][1] in str(err[1])
|
|
|
c9345fa |
self.failure_count += 1
|
|
|
c9345fa |
|
|
|
c9345fa |
+ # Make sure that multiple extensions work, but don't require LaTeX or
|
|
|
c9345fa |
+ # Inkscape to do so.
|
|
|
c9345fa |
+ kwargs.setdefault('extensions', ['png', 'png', 'png'])
|
|
|
c9345fa |
+
|
|
|
c9345fa |
func = image_comparison(**kwargs)(func)
|
|
|
c9345fa |
loader = nose.loader.TestLoader()
|
|
|
c9345fa |
suite = loader.loadTestsFromGenerator(
|
|
|
c9345fa |
--
|
|
|
c9345fa |
2.13.5
|
|
|
c9345fa |
|