mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Remove test_001_archive.py as it doesn't do anything: ../pil-archive/* doesn't exist
This commit is contained in:
parent
8beb66443b
commit
e8ef927bac
|
@ -1,23 +0,0 @@
|
|||
import PIL
|
||||
import PIL.Image
|
||||
|
||||
import glob, os
|
||||
|
||||
for file in glob.glob("../pil-archive/*"):
|
||||
f, e = os.path.splitext(file)
|
||||
if e in [".txt", ".ttf", ".otf", ".zip"]:
|
||||
continue
|
||||
try:
|
||||
im = PIL.Image.open(file)
|
||||
im.load()
|
||||
except IOError as v:
|
||||
print("-", "failed to open", file, "-", v)
|
||||
else:
|
||||
print("+", file, im.mode, im.size, im.format)
|
||||
if e == ".exif":
|
||||
try:
|
||||
info = im._getexif()
|
||||
except KeyError as v:
|
||||
print("-", "failed to get exif info from", file, "-", v)
|
||||
|
||||
print("ok")
|
Loading…
Reference in New Issue
Block a user