From bc1e1c148cf339c9024fa0381fecab1019063401 Mon Sep 17 00:00:00 2001 From: Josh Ware Date: Tue, 26 Aug 2014 13:44:38 +1000 Subject: [PATCH] Casting the iterations variable to integer --- Tests/test_jp2k_leak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_jp2k_leak.py b/Tests/test_jp2k_leak.py index 35040df20..5b5fd6ab2 100644 --- a/Tests/test_jp2k_leak.py +++ b/Tests/test_jp2k_leak.py @@ -6,7 +6,7 @@ from PIL import Image # Limits for testing the leak mem_limit = 512*1048576 stack_size = 8*1048576 -iterations = (mem_limit/stack_size)*2 +iterations = int(mem_limit/stack_size)*2 codecs = dir(Image.core) test_file = "Tests/images/rgb_trns_ycbc.jp2"