Skip to content

Commit

Permalink
ignore igraph warning
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Nov 17, 2018
1 parent 718d191 commit b95df52
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/load_tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def reset_warnings():
warnings.resetwarnings()
warnings.simplefilter("error")
ignore_numpy_warning()
ignore_igraph_warning()


def ignore_numpy_warning():
Expand All @@ -25,6 +26,14 @@ def ignore_numpy_warning():
"matrices or deal with linear algebra ")


def ignore_igraph_warning():
warnings.filterwarnings(
"ignore", category=DeprecationWarning,
message="The SafeConfigParser class has been renamed to ConfigParser "
"in Python 3.2. This alias will be removed in future versions. Use "
"ConfigParser directly instead")


reset_warnings()

global digits
Expand Down

0 comments on commit b95df52

Please sign in to comment.