mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Error is not raised on 64-bit systems
This commit is contained in:
parent
590b5b7f9e
commit
d591cf8d3f
|
@ -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)
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user