Skip to content

Commit

Permalink
Merge pull request #4622 from hugovk/fix-string
Browse files Browse the repository at this point in the history
Fix broken string in test error message
  • Loading branch information
radarhere committed May 13, 2020
2 parents e84b368 + 837bc0a commit 96f2ef1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/test_image_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ def assert_compare_images(a, b, max_average_diff, max_diff=255):
average_diff = sum(i * num for i, num in enumerate(ch_hist)) / (
a.size[0] * a.size[1]
)
msg = "average pixel value difference {:.4f} > expected {:.4f} "
"for '{}' band".format(average_diff, max_average_diff, band)
msg = (
"average pixel value difference {:.4f} > expected {:.4f} "
"for '{}' band".format(average_diff, max_average_diff, band)
)
assert max_average_diff >= average_diff, msg

last_diff = [i for i, num in enumerate(ch_hist) if num > 0][-1]
Expand Down

0 comments on commit 96f2ef1

Please sign in to comment.