Commit 3d840231 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Carlos Garcia Campos

regtest: Fix png diff generation with python-pil pillow fork

Use from PIL import Image instead of just import Image, since pillow
only doesn't support import Image without using PIL.Image.
parent 68e58ec5
......@@ -251,7 +251,7 @@ class Backend:
def _diff_png(self, ref_path, result_path):
try:
import Image, ImageChops
from PIL import Image, ImageChops
except ImportError:
raise NotImplementedError
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment