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

package info (click to toggle)
matplotlib 3.10.1%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,340 kB
  • sloc: python: 147,118; cpp: 62,988; objc: 1,679; ansic: 1,426; javascript: 786; makefile: 92; sh: 53
file content (19 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (2)
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
@@ -104,7 +104,7 @@
     if err:
         for key in ["actual", "expected", "diff"]:
             err[key] = os.path.relpath(err[key])
-        raise ImageComparisonFailure(
+        print(
             ('images not close (RMS %(rms).3f):'
                 '\n\t%(actual)s\n\t%(expected)s\n\t%(diff)s') % err)