mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Simple test for 1104
This commit is contained in:
parent
db94d48c4e
commit
883858151d
BIN
Tests/images/illu10_no_preview.eps
Normal file
BIN
Tests/images/illu10_no_preview.eps
Normal file
Binary file not shown.
BIN
Tests/images/illu10_preview.eps
Normal file
BIN
Tests/images/illu10_preview.eps
Normal file
Binary file not shown.
BIN
Tests/images/illuCS6_no_preview.eps
Normal file
BIN
Tests/images/illuCS6_no_preview.eps
Normal file
Binary file not shown.
BIN
Tests/images/illuCS6_preview.eps
Normal file
BIN
Tests/images/illuCS6_preview.eps
Normal file
Binary file not shown.
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user