mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-30 11:41:38 +08:00
Check for deprecation on import is problematic. Rather just check that filter can be imported normally.
This commit is contained in:
1 parent
78a7b7307a
commit
75080e6f0d
1 file changed
+6
-7
@@ -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)
|
||||
Reference in new issue
Block a user