mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
return 9999 for diff of failed grid comparison
This commit is contained in:
parent
76042a1700
commit
e5fd3675fa
@ -73,12 +73,12 @@ def compare_grids(actual, expected, threshold=0, alpha=True):
|
||||
errors.append((None, actual, expected))
|
||||
return -1
|
||||
equal = (im1 == im2)
|
||||
diff = 0
|
||||
# TODO - real diffing
|
||||
if not equal:
|
||||
errors.append((1, actual, expected))
|
||||
errors.append((9999, actual, expected))
|
||||
return 9999
|
||||
passed += 1
|
||||
return diff
|
||||
return 0
|
||||
|
||||
def summary(generate=False):
|
||||
global errors
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user