mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Fix pypy test failures
This commit is contained in:
parent
512b060a53
commit
bdcf980570
|
@ -757,6 +757,8 @@ class PngImageFile(ImageFile.ImageFile):
|
|||
self.png.rewind()
|
||||
self.__prepare_idat = self.__rewind_idat
|
||||
self.im = None
|
||||
if self.pyaccess:
|
||||
self.pyaccess = None
|
||||
self.info = self.png.im_info
|
||||
self.tile = self.png.im_tile
|
||||
self.fp = self.__fp
|
||||
|
@ -920,6 +922,8 @@ class PngImageFile(ImageFile.ImageFile):
|
|||
updated, self.dispose_extent, updated.convert("RGBA")
|
||||
)
|
||||
self.im = self._prev_im
|
||||
if self.pyaccess:
|
||||
self.pyaccess = None
|
||||
self._prev_im = self.im.copy()
|
||||
|
||||
if dispose:
|
||||
|
|
Loading…
Reference in New Issue
Block a user