Skip to content

Commit

Permalink
Fix canny import test
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Feb 4, 2015
1 parent d070b2d commit f4970f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions skimage/filters/tests/test_deprecated_imports.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from warnings import catch_warnings, simplefilter
from ..._shared._warnings import expected_warnings
from ...data import moon


def test_filter_import():
Expand All @@ -11,9 +13,7 @@ def test_filter_import():


def test_canny_import():
with catch_warnings():
simplefilter('ignore')
data = moon()
with expected_warnings(['skimage.feature.canny']):
from skimage.filters import canny

assert('canny' in dir(F))
assert F._import_warned
canny(data)

0 comments on commit f4970f9

Please sign in to comment.