correction for catch_warnings on python 3
This commit is contained in:
parent
d308d45153
commit
ee3e6212fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user