mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Black and isort
This commit is contained in:
parent
dd341f12d6
commit
78478dfcfb
|
@ -1,15 +1,18 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from .helper import PillowTestCase
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
repro = ('Tests/images/sgi_overrun_expandrowF04.bin',
|
from .helper import PillowTestCase
|
||||||
'Tests/images/sgi_crash.bin',
|
|
||||||
)
|
repro = (
|
||||||
|
"Tests/images/sgi_overrun_expandrowF04.bin",
|
||||||
|
"Tests/images/sgi_crash.bin",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class TestSgiCrashes(PillowTestCase):
|
class TestSgiCrashes(PillowTestCase):
|
||||||
def test_crashes(self):
|
def test_crashes(self):
|
||||||
for path in repro:
|
for path in repro:
|
||||||
with open(path, 'rb') as f:
|
with open(path, "rb") as f:
|
||||||
im = Image.open(f)
|
im = Image.open(f)
|
||||||
with self.assertRaises(IOError):
|
with self.assertRaises(IOError):
|
||||||
im.load()
|
im.load()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user