mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +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):
|
||||
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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user