Fix custom six issue in scipy 0.14 on python 3.4

This commit is contained in:
Johannes Schönberger
2014-05-05 14:37:45 -04:00
parent f4f509fa8d
commit 5c2d8eb0aa
+3 -1
View File
@@ -50,7 +50,9 @@ def all_warnings():
f[0].f_locals['__warningregistry__'] = {}
del frame
for mod in list(sys.modules.values()):
for mod_name, mod in list(sys.modules.items()):
if 'six.moves' in mod_name:
continue
try:
mod.__warningregistry__.clear()
except AttributeError: