-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
What is "bug-200802-systemerror"?
Pillow/Tests/test_image_putdata.py
Lines 32 to 46 in f8160b8
| def test_long_integers() -> None: | |
| # see bug-200802-systemerror | |
| def put(value: int) -> tuple[int, int, int, int]: | |
| im = Image.new("RGBA", (1, 1)) | |
| im.putdata([value]) | |
| return im.getpixel((0, 0)) | |
| assert put(0xFFFFFFFF) == (255, 255, 255, 255) | |
| assert put(0xFFFFFFFF) == (255, 255, 255, 255) | |
| assert put(-1) == (255, 255, 255, 255) | |
| assert put(-1) == (255, 255, 255, 255) | |
| if sys.maxsize > 2**32: | |
| assert put(sys.maxsize) == (255, 255, 255, 255) | |
| else: | |
| assert put(sys.maxsize) == (255, 255, 255, 127) |
@cgohlke This comes all the way from your original tests. I don't suppose you remember what this was?
Metadata
Metadata
Assignees
Labels
No labels