mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Correct the name
This commit is contained in:
parent
05fe86654c
commit
8c2a7502a4
|
@ -598,7 +598,7 @@ class Image:
|
|||
id(self)
|
||||
)
|
||||
|
||||
def _repr_png(self):
|
||||
def _repr_png_(self):
|
||||
""" iPython display hook support
|
||||
|
||||
:returns: png version of the image as bytes
|
||||
|
|
|
@ -377,7 +377,7 @@ class TestFilePng(PillowTestCase):
|
|||
def test_repr_png(self):
|
||||
im = hopper()
|
||||
|
||||
repr_png = Image.open(BytesIO(im._repr_png()))
|
||||
repr_png = Image.open(BytesIO(im._repr_png_()))
|
||||
self.assertEqual(repr_png.format, 'PNG')
|
||||
self.assert_image_equal(im, repr_png)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user