Pillow/Tests/import_all.py

18 lines
365 B
Python
Raw Normal View History

from __future__ import print_function
2014-08-28 18:18:54 +04:00
import glob
import os
import traceback
2015-08-25 15:27:18 +03:00
import sys
2019-06-13 18:53:42 +03:00
2015-08-25 15:27:18 +03:00
sys.path.insert(0, ".")
2017-12-30 23:11:26 +03:00
for file in glob.glob("src/PIL/*.py"):
module = os.path.basename(file)[:-3]
try:
exec("from PIL import " + module)
except (ImportError, SyntaxError):
print("===", "failed to import", module)
traceback.print_exc()