Basic load tests for WMF and EMF formats

This commit is contained in:
aagaidiu 2016-11-23 14:33:24 -08:00
parent bfd09d7bf1
commit e3715b86e1
3 changed files with 19 additions and 0 deletions

BIN
Tests/images/drawing.emf Normal file

Binary file not shown.

BIN
Tests/images/drawing.wmf Normal file

Binary file not shown.

19
Tests/test_file_wmf.py Normal file
View File

@ -0,0 +1,19 @@
from helper import unittest, PillowTestCase
from PIL import Image
class TestFileWmf(PillowTestCase):
def test_load_raw(self):
# Test basic EMF load
im = Image.open('Tests/images/drawing.emf')
im.load() # should not segfault.
# Test basic WMF load
im = Image.open('Tests/images/drawing.wmf')
im.load() # should not segfault.
if __name__ == '__main__':
unittest.main()