Review comments

This commit is contained in:
wiredfool 2016-11-23 05:33:02 -08:00
parent e0cbef34fb
commit 212508b3f2
2 changed files with 1 additions and 4 deletions

View File

@ -85,9 +85,7 @@ class SunImageFile(ImageFile.ImageFile):
else: else:
self.mode, rawmode = 'RGB', 'BGRX' self.mode, rawmode = 'RGB', 'BGRX'
else: else:
raise SyntaxError("Unsupported Mode/Bit Depth") raise SyntaxError("Unsupported Mode/Bit Depth")
if palette_length: if palette_length:
if palette_length > 1024: if palette_length > 1024:

View File

@ -38,7 +38,6 @@ class TestFileSun(PillowTestCase):
os.listdir(EXTRA_DIR) if os.path.splitext(f)[1] os.listdir(EXTRA_DIR) if os.path.splitext(f)[1]
in ('.sun', '.SUN', '.ras')) in ('.sun', '.SUN', '.ras'))
for path in files: for path in files:
print (path)
with Image.open(path) as im: with Image.open(path) as im:
im.load() im.load()
self.assertIsInstance(im, SunImagePlugin.SunImageFile) self.assertIsInstance(im, SunImagePlugin.SunImageFile)