mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-31 19:23:16 +03:00
Fixed test_optimize_full_l test case for python2.
This commit is contained in:
parent
78081a2498
commit
778768c9bc
|
@ -38,7 +38,7 @@ class TestFileGif(PillowTestCase):
|
||||||
def test_optimize_full_l(self):
|
def test_optimize_full_l(self):
|
||||||
from io import BytesIO
|
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()
|
file = BytesIO()
|
||||||
im.save(file, "GIF", optimize=True)
|
im.save(file, "GIF", optimize=True)
|
||||||
self.assertEqual(im.mode, "L")
|
self.assertEqual(im.mode, "L")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user