| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/feisuo/matplotlib/master/visual_tests.py | [Back] [Original] |
| name | actual | expected | diff | \n" _has_failure = False _body = "" for subdir in _subdirs: if subdir == "test_compare_images": # these are the image which test the image comparison functions... continue pictures = defaultdict(dict) for file in os.listdir(os.path.join(image_dir, subdir)): if os.path.isdir(os.path.join(image_dir, subdir, file)): continue fn, fext = os.path.splitext(file) if fext != ".png": continue # Always use / for URLs. if "-failed-diff" in fn: pictures[fn[:-12]]["f"] = "/".join((subdir, file)) elif "-expected" in fn: pictures[fn[:-9]]["e"] = "/".join((subdir, file)) else: pictures[fn]["c"] = "/".join((subdir, file)) _body += "
| name | actual | expected | diff | \n" for name, test in six.iteritems(pictures): if test.get("f", None): # a real failure in the image generation, resulting in different images _has_failure = True s = "(failed)" failed = 'diff'.format(test.get("f", "")) current = '
| Web Proxy Viewer | New URL | Original Page |