correction for catch_warnings on python 3

This commit is contained in:
Luke Campagnola 2016-01-30 12:26:23 -08:00
parent d308d45153
commit ee3e6212fa

View File

@ -380,7 +380,7 @@ def eq(a, b):
return True
try:
with warnings.catch_warnings(np): # ignore numpy futurewarning (numpy v. 1.10)
with warnings.catch_warnings(module=np): # ignore numpy futurewarning (numpy v. 1.10)
e = a==b
except ValueError:
return False