mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-04 20:03:20 +03:00
testing with approx tuple to fix ubuntu test failures
This commit is contained in:
parent
d0de431fe4
commit
2d3a841e4b
|
@ -351,12 +351,14 @@ def test_auto_contrast_mask_real_input():
|
||||||
|
|
||||||
assert result_nomask != result
|
assert result_nomask != result
|
||||||
assert_tuple_approx_equal(
|
assert_tuple_approx_equal(
|
||||||
ImageStat.Stat(result, mask=rect_mask).median,
|
ImageStat.Stat(result, mask=rect_mask).median,
|
||||||
[195, 202, 184],
|
[195, 202, 184],
|
||||||
threshold=2,
|
threshold=2,
|
||||||
msg='autocontrast with mask pixel incorrect')
|
msg="autocontrast with mask pixel incorrect",
|
||||||
|
)
|
||||||
assert_tuple_approx_equal(
|
assert_tuple_approx_equal(
|
||||||
ImageStat.Stat(result_nomask).median,
|
ImageStat.Stat(result_nomask).median,
|
||||||
[119, 106, 79],
|
[119, 106, 79],
|
||||||
threshold=2,
|
threshold=2,
|
||||||
msg='autocontrast without mask pixel incorrect')
|
msg="autocontrast without mask pixel incorrect",
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user