Skip to content

Commit

Permalink
testing with approx tuple to fix ubuntu test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
navneeth committed Aug 11, 2020
1 parent d0de431 commit 2d3a841
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Tests/test_imageops.py
Expand Up @@ -351,12 +351,14 @@ def test_auto_contrast_mask_real_input():

assert result_nomask != result
assert_tuple_approx_equal(
ImageStat.Stat(result, mask=rect_mask).median,
[195, 202, 184],
threshold=2,
msg='autocontrast with mask pixel incorrect')
ImageStat.Stat(result, mask=rect_mask).median,
[195, 202, 184],
threshold=2,
msg="autocontrast with mask pixel incorrect",
)
assert_tuple_approx_equal(
ImageStat.Stat(result_nomask).median,
[119, 106, 79],
threshold=2,
msg='autocontrast without mask pixel incorrect')
ImageStat.Stat(result_nomask).median,
[119, 106, 79],
threshold=2,
msg="autocontrast without mask pixel incorrect",
)

0 comments on commit 2d3a841

Please sign in to comment.