mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-17 10:44:45 +03:00
Fix test.
This commit is contained in:
parent
4e8778a0a0
commit
5bab56ca16
|
@ -370,7 +370,8 @@ class TestFileLibTiff(LibTiffTestCase):
|
|||
fn = im.fp.fileno()
|
||||
|
||||
os.fstat(fn)
|
||||
im.load() # this should close it.
|
||||
im.load()
|
||||
im.close() # this should close it.
|
||||
self.assertRaises(OSError, lambda: os.fstat(fn))
|
||||
im = None # this should force even more closed.
|
||||
self.assertRaises(OSError, lambda: os.fstat(fn))
|
||||
|
|
Loading…
Reference in New Issue
Block a user