mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
Py3 bytes
This commit is contained in:
parent
88c43b61b7
commit
d983aead74
|
@ -131,7 +131,7 @@ class TestImagePalette(PillowTestCase):
|
|||
|
||||
rgb = b'\x00' * 2 + b'\x01' * 2 + b'\x02' * 2
|
||||
img = Image.frombytes('P', (6, 1), rgb)
|
||||
img.putpalette('\xFF\x00\x00' '\x00\xFF\x00' '\x00\x00\xFF') # RGB
|
||||
img.putpalette(b'\xFF\x00\x00\x00\xFF\x00\x00\x00\xFF') # RGB
|
||||
img.save(outfile, format='PNG')
|
||||
|
||||
reloaded = Image.open(outfile)
|
||||
|
|
Loading…
Reference in New Issue
Block a user