mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Removed warning import, stray im=None, and moved os import to top
This commit is contained in:
parent
937ae7790f
commit
65c17d4176
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user