mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +03:00
py3 fix
This commit is contained in:
parent
a51d3bcdba
commit
bc66e2b34a
|
@ -59,7 +59,8 @@ class TestFileGif(PillowTestCase):
|
|||
# Check for correctness after conversion back to RGB
|
||||
def check(colors, size, expected_palette_length):
|
||||
# make an image with empty colors in the start of the palette range
|
||||
im = Image.frombytes('P', (colors,colors), bytes(bytearray(range(256-colors,256)*colors)))
|
||||
im = Image.frombytes('P', (colors,colors),
|
||||
bytes(bytearray(list(range(256-colors,256))*colors)))
|
||||
im = im.resize((size,size))
|
||||
outfile = BytesIO()
|
||||
im.save(outfile, 'GIF')
|
||||
|
|
Loading…
Reference in New Issue
Block a user