diff --git a/Tests/32bit_segfault_check.py b/Tests/32bit_segfault_check.py index 958bc6b3c..822d524fd 100644 --- a/Tests/32bit_segfault_check.py +++ b/Tests/32bit_segfault_check.py @@ -1,7 +1,10 @@ #!/usr/bin/env python from PIL import Image +import sys -im = Image.new('L', (999999, 999999), 0) + +if sys.maxsize < 2**32: + im = Image.new('L', (999999, 999999), 0)