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:
Steven Silvester
2014-12-23 07:27:45 -06:00
parent 782ba46a4c
commit a4e4e57ba5
7 changed files with 53 additions and 13 deletions
+3 -3
View File
@@ -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: