Merge branch '2.6.x'

This commit is contained in:
wiredfool 2014-10-01 11:00:56 -07:00
commit 9ef381a378
8 changed files with 35 additions and 15 deletions

View File

@ -1,9 +1,15 @@
Changelog (Pillow)
==================
2.6.0 (unreleased)
2.6.0 (2014-10-01)
------------------
- Relax precision of ImageDraw tests for x86, GimpGradient for PPC
[wiredfool]
2.6.0-rc1 (2014-09-29)
----------------------
- Use redistributable image for testing #884
[hugovk]

View File

@ -12,7 +12,7 @@
# ;-)
VERSION = '1.1.7' # PIL version
PILLOW_VERSION = '2.5.3' # Pillow
PILLOW_VERSION = '2.6.0' # Pillow
_plugins = ['BmpImagePlugin',
'BufrStubImagePlugin',

View File

@ -80,7 +80,7 @@ class TestImage(PillowTestCase):
ret = GimpGradientFile.sphere_increasing(middle, pos)
# Assert
self.assertEqual(ret, 0.9682458365518543)
self.assert_almost_equal(ret, 0.9682458365518543)
def test_sphere_decreasing(self):
# Arrange

View File

@ -63,8 +63,8 @@ class TestImageDraw(PillowTestCase):
del draw
# Assert
self.assert_image_equal(
im, Image.open("Tests/images/imagedraw_arc.png"))
self.assert_image_similar(
im, Image.open("Tests/images/imagedraw_arc.png"),1)
def test_arc1(self):
self.helper_arc(BBOX1)
@ -96,8 +96,8 @@ class TestImageDraw(PillowTestCase):
del draw
# Assert
self.assert_image_equal(
im, Image.open("Tests/images/imagedraw_chord.png"))
self.assert_image_similar(
im, Image.open("Tests/images/imagedraw_chord.png"),1)
def test_chord1(self):
self.helper_chord(BBOX1)
@ -115,8 +115,8 @@ class TestImageDraw(PillowTestCase):
del draw
# Assert
self.assert_image_equal(
im, Image.open("Tests/images/imagedraw_ellipse.png"))
self.assert_image_similar(
im, Image.open("Tests/images/imagedraw_ellipse.png"),1)
def test_ellipse1(self):
self.helper_ellipse(BBOX1)
@ -153,8 +153,8 @@ class TestImageDraw(PillowTestCase):
del draw
# Assert
self.assert_image_equal(
im, Image.open("Tests/images/imagedraw_pieslice.png"))
self.assert_image_similar(
im, Image.open("Tests/images/imagedraw_pieslice.png"),1)
def test_pieslice1(self):
self.helper_pieslice(BBOX1)

View File

@ -55,6 +55,12 @@ class TestImageFile(PillowTestCase):
if EpsImagePlugin.has_ghostscript():
im1, im2 = roundtrip("EPS")
# This test fails on Ubuntu 12.04, PPC (Bigendian) It
# appears to be a ghostscript 9.05 bug, since the
# ghostscript rendering is wonky and the file is identical
# to that written on ubuntu 12.04 x64
# md5sum: ba974835ff2d6f3f2fd0053a23521d4a
# EPS comes back in RGB:
self.assert_image_similar(im1, im2.convert('L'), 20)

View File

@ -1,5 +1,7 @@
from helper import unittest, PillowTestCase
from PIL import PILLOW_VERSION
try:
import pyroma
except ImportError:
@ -23,8 +25,14 @@ class TestPyroma(PillowTestCase):
rating = pyroma.ratings.rate(data)
# Assert
# Should have a perfect score
self.assertEqual(rating, (10, []))
if 'rc' in PILLOW_VERSION:
#Pyroma needs to chill about RC versions and not kill all our tests.
self.assertEqual(rating, (9,
['The packages version number does not comply with PEP-386.']))
else:
# Should have a perfect score
self.assertEqual(rating, (10, []))
if __name__ == '__main__':

View File

@ -71,7 +71,7 @@
* See the README file for information on usage and redistribution.
*/
#define PILLOW_VERSION "2.5.3"
#define PILLOW_VERSION "2.6.0"
#include "Python.h"

View File

@ -90,7 +90,7 @@ except (ImportError, OSError):
NAME = 'Pillow'
PILLOW_VERSION = '2.5.3'
PILLOW_VERSION = '2.6.0'
TCL_ROOT = None
JPEG_ROOT = None
JPEG2K_ROOT = None