mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +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
|
# Check for correctness after conversion back to RGB
|
||||||
def check(colors, size, expected_palette_length):
|
def check(colors, size, expected_palette_length):
|
||||||
# make an image with empty colors in the start of the palette range
|
# 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))
|
im = im.resize((size,size))
|
||||||
outfile = BytesIO()
|
outfile = BytesIO()
|
||||||
im.save(outfile, 'GIF')
|
im.save(outfile, 'GIF')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user