Hello community,

here is the log from the commit of package python-Pillow for openSUSE:Factory 
checked in at 2015-02-10 20:23:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Pillow (Old)
 and      /work/SRC/openSUSE:Factory/.python-Pillow.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Pillow"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Pillow/python-Pillow.changes      
2015-01-08 23:03:15.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-Pillow.new/python-Pillow.changes 
2015-02-10 20:23:18.000000000 +0100
@@ -1,0 +2,6 @@
+Fri Feb  6 08:25:34 UTC 2015 - h...@urpla.net
+
+- fix test for lossy webp alpha deviation of earlier lib versions
+  * Add Pillow-fixtests.patch 
+
+-------------------------------------------------------------------

New:
----
  Pillow-fixtests.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Pillow.spec ++++++
--- /var/tmp/diff_new_pack.gfXeho/_old  2015-02-10 20:23:19.000000000 +0100
+++ /var/tmp/diff_new_pack.gfXeho/_new  2015-02-10 20:23:19.000000000 +0100
@@ -24,6 +24,7 @@
 Group:          Development/Languages/Python
 Url:            http://python-imaging.github.io/
 Source:         
https://pypi.python.org/packages/source/P/Pillow/Pillow-%{version}.tar.gz
+Patch:          Pillow-fixtests.patch
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 BuildRequires:  python-tk
@@ -85,6 +86,7 @@
 
 %prep
 %setup -q -n Pillow-%{version}
+%patch -p1
 
 %build
 python setup.py build

++++++ Pillow-fixtests.patch ++++++
diff --git a/Tests/test_file_webp_alpha.py b/Tests/test_file_webp_alpha.py
index 22c5c09..f316b71 100644
--- a/Tests/test_file_webp_alpha.py
+++ b/Tests/test_file_webp_alpha.py
@@ -83,7 +83,11 @@ class TestFileWebpAlpha(PillowTestCase):
         image.load()
         image.getdata()
 
-        self.assert_image_similar(image, pil_image, 1.0)
+        # early versions of webp are known to produce higher deviations: deal 
with it
+        if _webp.WebPDecoderVersion(self) <= 0x201:
+            self.assert_image_similar(image, pil_image, 3.0)
+        else:
+            self.assert_image_similar(image, pil_image, 1.0)
 
 
 if __name__ == '__main__':
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to