summaryrefslogtreecommitdiff
path: root/regtest
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2014-10-26 12:09:28 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2014-10-26 12:12:47 +0100
commit3d840231bc6f0714da361493ef32913af2eb78d7 (patch)
tree8c050574d9202e9ca3168eb5d81b8ed25ed21368 /regtest
parent68e58ec5465efc289d85ae104941db92450a3168 (diff)
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.
Diffstat (limited to 'regtest')
-rw-r--r--regtest/backends/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/regtest/backends/__init__.py b/regtest/backends/__init__.py
index 36391d10..89b57551 100644
--- a/regtest/backends/__init__.py
+++ b/regtest/backends/__init__.py
@@ -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