mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Adjusted test to match expected behavior
This commit is contained in:
parent
e8122600f6
commit
e4e0e0d2bf
|
@ -479,10 +479,9 @@ class TestFileTiffW32(PillowTestCase):
|
||||||
im.save(tmpfile)
|
im.save(tmpfile)
|
||||||
|
|
||||||
im = Image.open(tmpfile)
|
im = Image.open(tmpfile)
|
||||||
im.load()
|
|
||||||
self.assertRaises(Exception, lambda: os.remove(tmpfile))
|
self.assertRaises(Exception, lambda: os.remove(tmpfile))
|
||||||
|
im.load()
|
||||||
im.close()
|
# this should not fail, as load should have closed the file.
|
||||||
os.remove(tmpfile)
|
os.remove(tmpfile)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user