diff --git a/modules/base/tests/test_table.py b/modules/base/tests/test_table.py
index 3cacb6b9fc8f5b54b711e74974eaedb1e45d2a6c..36ea13f0f1c33bd65c68f1433bb63d205c2d1a28 100644
--- a/modules/base/tests/test_table.py
+++ b/modules/base/tests/test_table.py
@@ -34,8 +34,8 @@ except ImportError:
   print "Could not find matplotlib: ignoring some table class unit tests"
   
 try:
-  import Image
-  import ImageChops
+  from PIL import Image
+  from PIL import ImageChops
 except ImportError:
   HAS_PIL=False
   print "Could not find python imagine library: ignoring some table class unit tests"