Simple test for 1104

This commit is contained in:
hugovk 2015-03-26 14:05:17 +02:00
parent db94d48c4e
commit 883858151d
5 changed files with 15 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -223,6 +223,21 @@ class TestFileEps(PillowTestCase):
self._test_readline_file_psfile(s, ending)
def test_open_eps(self):
# https://github.com/python-pillow/Pillow/issues/1104
# Arrange
FILES = ["Tests/images/illu10_no_preview.eps",
"Tests/images/illu10_preview.eps",
"Tests/images/illuCS6_no_preview.eps",
"Tests/images/illuCS6_preview.eps"]
# Act
for filename in FILES:
img = Image.open(filename)
# Assert
self.assertEqual(img.mode, "RGB")
if __name__ == '__main__':
unittest.main()