BUG: Fix testing failures when FreeImage not installed.

FreeImage throws an OSError, which must be caught when attempting
to load the IO plugins for tests to pass without FreeImage installed.
This commit is contained in:
Matt McCormick
2012-07-20 15:05:45 -04:00
parent f6066539cc
commit 89f0151a7a
+1 -1
View File
@@ -31,7 +31,7 @@ def _load_preferred_plugins():
try:
use_plugin(plugin, kind=func)
break
except (ImportError, RuntimeError):
except (ImportError, RuntimeError, OSError):
pass
# Use PIL as the default imread plugin, since matplotlib (1.2.x)