From 778768c9bc333ecba88b1080512e2b384c6f5b3c Mon Sep 17 00:00:00 2001 From: Nikita Uvarov Date: Tue, 19 Aug 2014 15:00:15 +0300 Subject: [PATCH] Fixed test_optimize_full_l test case for python2. --- Tests/test_file_gif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py index 12e12b2f3..bd4a6e76c 100644 --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -38,7 +38,7 @@ class TestFileGif(PillowTestCase): def test_optimize_full_l(self): from io import BytesIO - im = Image.frombytes("L", (16, 16), bytes(range(256))) + im = Image.frombytes("L", (16, 16), bytes(bytearray(range(256)))) file = BytesIO() im.save(file, "GIF", optimize=True) self.assertEqual(im.mode, "L")