From 5ee9dd6f886258a5ce579b45a303ddcf57714829 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Fri, 2 Oct 2015 03:03:15 -0700 Subject: [PATCH] Fixing test on py 2.x --- Tests/test_imagewin_pointers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_imagewin_pointers.py b/Tests/test_imagewin_pointers.py index b29587cc9..f8886f55b 100644 --- a/Tests/test_imagewin_pointers.py +++ b/Tests/test_imagewin_pointers.py @@ -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):