mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +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 = Image.open(tmpfile)
|
||||
im.load()
|
||||
self.assertRaises(Exception, lambda: os.remove(tmpfile))
|
||||
|
||||
im.close()
|
||||
im.load()
|
||||
# this should not fail, as load should have closed the file.
|
||||
os.remove(tmpfile)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue
Block a user