mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-12 17:57:28 +08:00
Create new expected_warnings helper and some cleanup
Add new helper function for expected warnings during test Indentation cleanups and avoid skipping doctests if possible.
This commit is contained in:
@@ -12,9 +12,9 @@ BG = -1
|
||||
|
||||
|
||||
def label(*args, **kwargs):
|
||||
"""Wrap the label function to avoid deprecation warning"""
|
||||
with all_warnings():
|
||||
return _label(*args, **kwargs)
|
||||
"""Wrap the label function to avoid deprecation warning"""
|
||||
with all_warnings():
|
||||
return _label(*args, **kwargs)
|
||||
|
||||
|
||||
class TestConnectedComponents:
|
||||
|
||||
Reference in New Issue
Block a user