Fixing test on py 2.x

This commit is contained in:
wiredfool 2015-10-02 03:03:15 -07:00
parent eb80824f51
commit 5ee9dd6f88

View File

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