mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 17:54:32 +03:00
Review comments
This commit is contained in:
parent
e0cbef34fb
commit
212508b3f2
|
@ -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:
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user