We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd13c3 commit 25f72c4Copy full SHA for 25f72c4
sklearn/utils/testing.py
@@ -608,7 +608,9 @@ def clean_warning_registry():
608
"""Safe way to reset warnings """
609
warnings.resetwarnings()
610
reg = "__warningregistry__"
611
- for mod in sys.modules.copy().values():
+ for mod_name, mod in list(sys.modules.items()):
612
+ if 'six.moves' in mod_name:
613
+ continue
614
if hasattr(mod, reg):
615
getattr(mod, reg).clear()
616
0 commit comments