From 42d3d4b8c543850668186440d5a3ce93e2832c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Sun, 20 Apr 2014 11:59:10 +0200 Subject: Fix 'gif' image tests. The latest pillow has changed the default gif palette, so we'll use a normalized RGB palette instead. --- tests/test_django.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_django.py b/tests/test_django.py index 50a67a3..29453e6 100644 --- a/tests/test_django.py +++ b/tests/test_django.py @@ -445,9 +445,9 @@ class DjangoImageFieldTestCase(unittest.TestCase): self.assertEqual('django/example.jpg', o.animage.name) i = Image.open(os.path.join(settings.MEDIA_ROOT, o.animage.name)) - colors = i.getcolors() - # 169 pixels with color 190 from the GIF palette - self.assertEqual([(169, 190)], colors) + colors = i.convert('RGB').getcolors() + # 169 pixels with rgb(0, 0, 255) + self.assertEqual([(169, (0, 0, 255))], colors) self.assertEqual('GIF', i.format) def test_with_file(self): -- cgit v1.2.3