Pillow/Tests/import_all.py

17 lines
364 B
Python
Raw Normal View History

from __future__ import print_function
2014-08-28 18:18:54 +04:00
import glob
import os
2015-08-25 15:27:18 +03:00
import sys
import traceback
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()