Check for deprecation on import is problematic. Rather just check that filter can be imported normally.

This commit is contained in:
Stefan van der Walt
2014-10-01 02:38:07 +02:00
parent 78a7b7307a
commit 75080e6f0d
+6 -7
View File
@@ -1,10 +1,9 @@
from skimage._shared.utils import all_warnings, skimage_deprecation
from numpy.testing import assert_warns
from warnings import catch_warnings, simplefilter
def test_import_filter():
with catch_warnings():
simplefilter('ignore')
from skimage import filter as F
def import_filter():
from skimage import filter as F
assert('sobel' in dir(F))
def test_filter_import():
with all_warnings():
assert_warns(skimage_deprecation, import_filter)