diff options
author | don bright <hugh.m.bright@gmail.com> | 2011-12-28 05:17:04 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2011-12-28 05:17:04 (GMT) |
commit | 0ff0d2b68a10851ffab1b8baa14f87d20869d084 (patch) | |
tree | fe742b3dc61b3152fc8704928cf58299accf6eb3 /tests/test_cmdline_tool.py | |
parent | 546ed1690486443e6780c1509626de8758a73498 (diff) |
regression tests: fix ncc==0 false-fails when using NCC image comparison
Diffstat (limited to 'tests/test_cmdline_tool.py')
-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 |