File: 0012-dont-generate-a-test-failure-if-images-are-not-close.patch

package info (click to toggle)
matplotlib2 2.2.3-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 77,560 kB
  • sloc: python: 127,114; cpp: 58,988; ansic: 29,698; objc: 2,809; makefile: 147; sh: 54
file content (21 lines) | stat: -rw-r--r-- 792 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Sandro Tosi <morph@debian.org>
Date: Thu, 17 May 2018 20:00:17 -0400
Subject: dont generate a test failure if images are not close to baseline

---
 lib/matplotlib/testing/decorators.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/matplotlib/testing/decorators.py b/lib/matplotlib/testing/decorators.py
index 2692cb9..ca50f4d 100644
--- a/lib/matplotlib/testing/decorators.py
+++ b/lib/matplotlib/testing/decorators.py
@@ -205,7 +205,7 @@ def _raise_on_image_difference(expected, actual, tol):
     if err:
         for key in ["actual", "expected"]:
             err[key] = os.path.relpath(err[key])
-        raise ImageComparisonFailure(
+        print(
             'images not close (RMS %(rms).3f):\n\t%(actual)s\n\t%(expected)s '
              % err)