mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
16 lines
432 B
Python
16 lines
432 B
Python
|
#!/usr/bin/env python
|
||
|
from .helper import PillowTestCase
|
||
|
from PIL import Image
|
||
|
|
||
|
repro = ('Tests/images/sgi_overrun_expandrowF04.bin',
|
||
|
'Tests/images/sgi_crash.bin',
|
||
|
)
|
||
|
|
||
|
class TestSgiCrashes(PillowTestCase):
|
||
|
def test_crashes(self):
|
||
|
for path in repro:
|
||
|
with open(path, 'rb') as f:
|
||
|
im = Image.open(f)
|
||
|
with self.assertRaises(IOError):
|
||
|
im.load()
|