From 2d3a841e4bd42559d8d3e9699c830326a4dea4dd Mon Sep 17 00:00:00 2001 From: navneeth Date: Wed, 12 Aug 2020 00:08:29 +0900 Subject: [PATCH] testing with approx tuple to fix ubuntu test failures --- Tests/test_imageops.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py index d4328261d..f17bfdd2f 100644 --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -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", + )