8000
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 cb27e4c commit a128220Copy full SHA for a128220
sklearn/utils/testing.py
@@ -580,7 +580,9 @@ def clean_warning_registry():
580
"""Safe way to reset warnings """
581
warnings.resetwarnings()
582
reg = "__warningregistry__"
583
- for mod in sys.modules.copy().values():
+ for mod_name, mod in list(sys.modules.items()):
584
+ if 'six.moves' in mod_name:
585
+ continue
586
if hasattr(mod, reg):
587
getattr(mod, reg).clear()
588
0 commit comments