mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
19 lines
377 B
Python
19 lines
377 B
Python
from helper import unittest, PillowTestCase
|
|
|
|
from PIL import GbrImagePlugin
|
|
|
|
|
|
class TestFileGbr(PillowTestCase):
|
|
|
|
def test_invalid_file(self):
|
|
invalid_file = "Tests/images/flower.jpg"
|
|
|
|
self.assertRaises(SyntaxError,
|
|
lambda: GbrImagePlugin.GbrImageFile(invalid_file))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|
|
|
|
# End of file
|