diff options
author | Marius Kintel <marius@kintel.net> | 2011-12-28 16:10:25 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-12-28 16:10:25 (GMT) |
commit | e14a9e2d28ad13e2a01864ecf7fb6a1ab9472b38 (patch) | |
tree | f8dca3085a23c25588aee56d3f3361bbad488f49 /tests | |
parent | 00a0ec64197e69b0486b39747440ae8f7b2e74a7 (diff) | |
parent | bd2662a858eb74eb75307856cf89008e32a14782 (diff) |
Merge branch 'master' into color-priority
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_cmdline_tool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmdline_tool.py b/tests/test_cmdline_tool.py index 967e334..4538984 100755 --- a/tests/test_cmdline_tool.py +++ b/tests/test_cmdline_tool.py @@ -110,7 +110,7 @@ def compare_png(resultfilename): elif compare_method=='NCC': thresh = 0.95 ncc_err = float(output.strip()) - if ncc_err > thresh: return True + if ncc_err > thresh or ncc_err==0.0: return True else: print >> sys.stderr, ncc_err, ' Images differ: NCC comparison < ', thresh return False |