mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 05:36:48 +03:00
18 lines
408 B
Python
18 lines
408 B
Python
from helper import unittest, PillowTestCase
|
|
|
|
from PIL import GribStubImagePlugin
|
|
|
|
|
|
class TestFileGribStub(PillowTestCase):
|
|
|
|
def test_invalid_file(self):
|
|
invalid_file = "Tests/images/flower.jpg"
|
|
|
|
self.assertRaises(SyntaxError,
|
|
lambda:
|
|
GribStubImagePlugin.GribStubImageFile(invalid_file))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|