mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-06 13:30:21 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user