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:
Matt McCormick
2012-07-20 15:46:58 -04:00
parent f6066539cc
commit db4cc04a90
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ try:
io.use_plugin('freeimage')
FI_available = True
priority_plugin = 'freeimage'
except OSError:
except RuntimeError:
FI_available = False