mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-04 13:00:57 +08:00
Add an explicit test for canny deprecation
This commit is contained in:
1 parent
69c0fd5e46
commit
d070b2df4d
1 file changed
+9
+9
@@ -8,3 +8,12 @@ def test_filter_import():
|
||||
|
||||
assert('sobel' in dir(F))
|
||||
assert F._import_warned
|
||||
|
||||
|
||||
def test_canny_import():
|
||||
with catch_warnings():
|
||||
simplefilter('ignore')
|
||||
from skimage.filters import canny
|
||||
|
||||
assert('canny' in dir(F))
|
||||
assert F._import_warned
|
||||
Reference in new issue
Block a user