mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Fixing test on py 2.x
This commit is contained in:
parent
eb80824f51
commit
5ee9dd6f88
|
@ -73,7 +73,7 @@ if sys.platform.startswith('win32'):
|
|||
memcpy(bp, ctypes.byref(bf), ctypes.sizeof(bf))
|
||||
memcpy(bp + ctypes.sizeof(bf), ctypes.byref(bi), bi.biSize)
|
||||
memcpy(bp + bf.bfOffBits, pixels, bi.biSizeImage)
|
||||
return bytes(buf)
|
||||
return bytearray(buf)
|
||||
|
||||
class TestImageWinPointers(PillowTestCase):
|
||||
def test_pointer(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user