mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 19:06:18 +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.png.rewind()
|
||||||
self.__prepare_idat = self.__rewind_idat
|
self.__prepare_idat = self.__rewind_idat
|
||||||
self.im = None
|
self.im = None
|
||||||
|
if self.pyaccess:
|
||||||
|
self.pyaccess = None
|
||||||
self.info = self.png.im_info
|
self.info = self.png.im_info
|
||||||
self.tile = self.png.im_tile
|
self.tile = self.png.im_tile
|
||||||
self.fp = self.__fp
|
self.fp = self.__fp
|
||||||
|
@ -920,6 +922,8 @@ class PngImageFile(ImageFile.ImageFile):
|
||||||
updated, self.dispose_extent, updated.convert("RGBA")
|
updated, self.dispose_extent, updated.convert("RGBA")
|
||||||
)
|
)
|
||||||
self.im = self._prev_im
|
self.im = self._prev_im
|
||||||
|
if self.pyaccess:
|
||||||
|
self.pyaccess = None
|
||||||
self._prev_im = self.im.copy()
|
self._prev_im = self.im.copy()
|
||||||
|
|
||||||
if dispose:
|
if dispose:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user