From 65c17d41761c35cfe6d13c93aeda0d634cf82567 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Fri, 28 Mar 2014 08:35:18 -0700 Subject: [PATCH] Removed warning import, stray im=None, and moved os import to top --- Tests/test_file_libtiff.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Tests/test_file_libtiff.py b/Tests/test_file_libtiff.py index 79abe5961..a53593a9e 100644 --- a/Tests/test_file_libtiff.py +++ b/Tests/test_file_libtiff.py @@ -1,5 +1,5 @@ from tester import * -import warnings +import os from PIL import Image, TiffImagePlugin @@ -35,7 +35,6 @@ def test_g4_tiff(): assert_equal(im.size, (500,500)) _assert_noerr(im) - im = None def test_g4_large(): file = "Tests/images/pport_g4.tif" @@ -298,8 +297,6 @@ def xtest_bw_compression_wRGB(): assert_exception(IOError, lambda: im.save(out, compression='group4')) def test_fp_leak(): - import os - im = Image.open("Tests/images/lena_g4_500.tif") fn = im.fp.fileno()