Adjusted test to match expected behavior

This commit is contained in:
wiredfool 2017-01-02 20:37:41 +00:00
parent e8122600f6
commit e4e0e0d2bf

View File

@ -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__':