[Python-modules-commits] [willow] 16/18: Adjust orientation test tollerance

Christopher Stuart Hoskin mans0954 at moszumanska.debian.org
Sun Jan 29 18:11:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

mans0954 pushed a commit to branch master
in repository willow.

commit 06996508beb4f19d7066a6b252db8f027e0f45b0
Author: Christopher Hoskin <mans0954 at debian.org>
Date:   Sun Jan 29 15:46:40 2017 +0000

    Adjust orientation test tollerance
    
    Bug: https://github.com/wagtail/Willow/issues/46
    Forwarded: https://github.com/wagtail/Willow/pull/50
    Author: Christopher Hoskin <mans0954 at debian.org>
    Last-Update: 2017-01-29
---
 tests/test_pillow.py | 2 +-
 tests/test_wand.py   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_pillow.py b/tests/test_pillow.py
index 7376edb..273c74a 100644
--- a/tests/test_pillow.py
+++ b/tests/test_pillow.py
@@ -144,7 +144,7 @@ class TestPillowImageOrientation(unittest.TestCase):
         # Check that the red flower is in the bottom left
         # The JPEGs have compressed slightly differently so the colours won't be spot on
         colour = image.image.convert('RGB').getpixel((155, 282))
-        self.assertAlmostEqual(colour[0], 217, delta=10)
+        self.assertAlmostEqual(colour[0], 217, delta=12)
         self.assertAlmostEqual(colour[1], 38, delta=11)
         self.assertAlmostEqual(colour[2], 46, delta=13)
 
diff --git a/tests/test_wand.py b/tests/test_wand.py
index 6104019..5dafbf5 100644
--- a/tests/test_wand.py
+++ b/tests/test_wand.py
@@ -111,7 +111,7 @@ class TestWandImageOrientation(unittest.TestCase):
         # Check that the red flower is in the bottom left
         # The JPEGs have compressed slightly differently so the colours won't be spot on
         colour = image.image[282][155]
-        self.assertAlmostEqual(colour.red * 255, 217, delta=10)
+        self.assertAlmostEqual(colour.red * 255, 217, delta=12)
         self.assertAlmostEqual(colour.green * 255, 38, delta=11)
         self.assertAlmostEqual(colour.blue * 255, 46, delta=13)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/willow.git



More information about the Python-modules-commits mailing list