diff --git a/Tests/test_core_resources.py b/Tests/test_core_resources.py index d5e358f31..cd34a0414 100644 --- a/Tests/test_core_resources.py +++ b/Tests/test_core_resources.py @@ -105,6 +105,7 @@ 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) @unittest.skipIf(is_pypy, "images are not collected") def test_set_blocks_max_stats(self):