BUG: Fix plugin import on systems without PIL or FreeImage.

This commit is contained in:
Stefan van der Walt
2012-05-07 14:06:25 -07:00
parent 9c13bab887
commit 52f35313a7
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -21,7 +21,10 @@ def setup_module(self):
used.
"""
sio.use_plugin('freeimage')
try:
sio.use_plugin('freeimage')
except OSError:
pass
@skipif(not FI_available)
+4 -1
View File
@@ -23,7 +23,10 @@ def setup_module(self):
Call `use_plugin` directly before the tests to ensure that PIL is used.
"""
use_plugin('pil')
try:
use_plugin('pil')
except ImportError:
pass
@skipif(not PIL_available)
def test_imread_flatten():