From 590b5b7f9ef599afd1910b103894e060195b60a2 Mon Sep 17 00:00:00 2001 From: Jayakrishna Menon Date: Mon, 18 Mar 2019 15:13:48 -0700 Subject: [PATCH] test case for set_blocks_max --- Tests/test_core_resources.py | 1 + 1 file changed, 1 insertion(+) 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):