mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-12 12:50:49 +08:00
BUG: Fix tests when FreeImage is not installed.
The plugin loader tries plugins but only catches ImportError and RuntimeError. The FreeImage plugin was throwing OSError. Tests were failing when FreeImage was not installed. It now throws a RuntimeError.
This commit is contained in:
@@ -15,7 +15,7 @@ try:
|
||||
io.use_plugin('freeimage')
|
||||
FI_available = True
|
||||
priority_plugin = 'freeimage'
|
||||
except OSError:
|
||||
except RuntimeError:
|
||||
FI_available = False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user