Fixed test_optimize_full_l test case for python2.

This commit is contained in:
Nikita Uvarov 2014-08-19 15:00:15 +03:00
parent 78081a2498
commit 778768c9bc

View File

@ -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")