Removed warning import, stray im=None, and moved os import to top

This commit is contained in:
wiredfool 2014-03-28 08:35:18 -07:00
parent 937ae7790f
commit 65c17d4176

View File

@ -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()