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

package info (click to toggle)
matplotlib 3.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 77,480 kB
  • sloc: python: 124,525; cpp: 58,549; ansic: 29,599; objc: 2,348; makefile: 148; sh: 57
file content (19 lines) | stat: -rw-r--r-- 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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(-)

--- a/lib/matplotlib/testing/decorators.py
+++ b/lib/matplotlib/testing/decorators.py
@@ -143,7 +143,7 @@ def _raise_on_image_difference(expected,
     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)