Error is not raised on 64-bit systems

This commit is contained in:
Andrew Murray 2019-03-23 17:16:43 +11:00
parent 590b5b7f9e
commit d591cf8d3f
2 changed files with 2 additions and 9 deletions

View File

@ -1,8 +0,0 @@
#!/usr/bin/env python
from PIL import Image
import sys
if sys.maxsize < 2**32:
Image.core.set_blocks_max(2**29)

View File

@ -105,7 +105,8 @@ class TestCoreMemory(PillowTestCase):
Image.new("RGB", (10, 10))
self.assertRaises(ValueError, Image.core.set_blocks_max, -1)
self.assertRaises(ValueError, Image.core.set_blocks_max, 2**29)
if sys.maxsize < 2**32:
self.assertRaises(ValueError, Image.core.set_blocks_max, 2**29)
@unittest.skipIf(is_pypy, "images are not collected")
def test_set_blocks_max_stats(self):