mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Do not close exclusive fp after loading
This commit is contained in:
parent
a986fed5b4
commit
72d5ee3bfa
|
@ -65,6 +65,12 @@ class TestImagePsd(PillowTestCase):
|
|||
|
||||
self.assertRaises(EOFError, im.seek, -1)
|
||||
|
||||
def test_open_after_exclusive_load(self):
|
||||
im = Image.open(test_file)
|
||||
im.load()
|
||||
im.seek(im.tell()+1)
|
||||
im.load()
|
||||
|
||||
def test_icc_profile(self):
|
||||
im = Image.open(test_file)
|
||||
self.assertIn("icc_profile", im.info)
|
||||
|
|
|
@ -54,6 +54,7 @@ class PsdImageFile(ImageFile.ImageFile):
|
|||
|
||||
format = "PSD"
|
||||
format_description = "Adobe Photoshop"
|
||||
_close_exclusive_fp_after_loading = False
|
||||
|
||||
def _open(self):
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user