mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 18:37:41 +08:00
BUG: Fix plugin import on systems without PIL or FreeImage.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user