mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Added expected result, renamed images
This commit is contained in:
parent
c07ce878d7
commit
c42867fa2c
BIN
Tests/images/reqd_showpage.png
Normal file
BIN
Tests/images/reqd_showpage.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
|
@ -72,8 +72,14 @@ class TestFileEps(PillowTestCase):
|
||||||
self.assert_image_similar(cmyk_image, target, 10)
|
self.assert_image_similar(cmyk_image, target, 10)
|
||||||
|
|
||||||
def test_showpage(self):
|
def test_showpage(self):
|
||||||
plot_image = Image.open("Tests/images/d15-120f10.eps")
|
# See https://github.com/python-pillow/Pillow/issues/2615
|
||||||
|
plot_image = Image.open("Tests/images/reqd_showpage.eps")
|
||||||
|
target = Image.open("Tests/images/reqd_showpage.png")
|
||||||
|
|
||||||
|
#should not crash/hang
|
||||||
plot_image.load()
|
plot_image.load()
|
||||||
|
# fonts could be slightly different
|
||||||
|
self.assert_image_similar(plot_image, target, 2)
|
||||||
|
|
||||||
def test_file_object(self):
|
def test_file_object(self):
|
||||||
# issue 479
|
# issue 479
|
||||||
|
|
Loading…
Reference in New Issue
Block a user