diff --git a/Tests/test_image.py b/Tests/test_image.py index 7b02b779929..804e1b67239 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -1038,10 +1038,15 @@ def test_roundtrip_bytes_method(self, mode: str) -> None: def test_getdata_putdata(self, mode: str) -> None: im = hopper(mode) - # copy the data from the previous image to a new image - # and check that they are the same reloaded = Image.new(mode, im.size) reloaded.putdata(im.getdata()) + + print('Mode: ' + mode) + print('Before: ' + bin(int.from_bytes(im.tobytes()[58:60], 'little'))) + print('Before: ' + str(list(im.getdata())[29])) + print('After: ' + bin(int.from_bytes(reloaded.tobytes()[58:60], 'little'))) + print('Before: ' + str(list(reloaded.getdata())[29])) + assert_image_equal(im, reloaded)