Py3 bytes

This commit is contained in:
wiredfool 2016-12-03 14:49:44 +00:00
parent 88c43b61b7
commit d983aead74

View File

@ -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)