mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
20 lines
417 B
Python
20 lines
417 B
Python
from helper import unittest, PillowTestCase
|
|
|
|
from PIL import Hdf5StubImagePlugin
|
|
|
|
|
|
class TestFileHdf5Stub(PillowTestCase):
|
|
|
|
def test_invalid_file(self):
|
|
test_file = "Tests/images/flower.jpg"
|
|
|
|
self.assertRaises(SyntaxError,
|
|
lambda:
|
|
Hdf5StubImagePlugin.HDF5StubImageFile(test_file))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|
|
|
|
# End of file
|