Skip to content

Commit

Permalink
Black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 1, 2020
1 parent dd341f1 commit 78478df
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Tests/test_sgi_crash.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
#!/usr/bin/env python
from .helper import PillowTestCase
from PIL import Image

repro = ('Tests/images/sgi_overrun_expandrowF04.bin',
'Tests/images/sgi_crash.bin',
)
from .helper import PillowTestCase

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:
with open(path, "rb") as f:
im = Image.open(f)
with self.assertRaises(IOError):
im.load()

0 comments on commit 78478df

Please sign in to comment.