mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-17 18:54:46 +03:00
Basic load tests for WMF and EMF formats
This commit is contained in:
parent
bfd09d7bf1
commit
e3715b86e1
BIN
Tests/images/drawing.emf
Normal file
BIN
Tests/images/drawing.emf
Normal file
Binary file not shown.
BIN
Tests/images/drawing.wmf
Normal file
BIN
Tests/images/drawing.wmf
Normal file
Binary file not shown.
19
Tests/test_file_wmf.py
Normal file
19
Tests/test_file_wmf.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user