From: Brett Cannon Date: Thu, 22 Feb 2007 04:50:21 +0000 (+0000) Subject: Fix test_importhooks for dict views. X-Git-Tag: v3.0a1~1204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0c82f9842c76a0b1c287c20d9e2061bbc134739;p=python Fix test_importhooks for dict views. --- diff --git a/BROKEN b/BROKEN index 80523e7d9a..a0a0165929 100644 --- a/BROKEN +++ b/BROKEN @@ -1,2 +1 @@ test_bsddb test_bsddb3 test_compile test_dumbdbm - test_importhooks diff --git a/Lib/test/test_importhooks.py b/Lib/test/test_importhooks.py index 5077d981dd..66c9258630 100644 --- a/Lib/test/test_importhooks.py +++ b/Lib/test/test_importhooks.py @@ -254,7 +254,7 @@ class ImportHooksTestCase(ImportHooksBaseTestCase): mnames = ("colorsys", "urlparse", "distutils.core", "compiler.misc") for mname in mnames: parent = mname.split(".")[0] - for n in sys.modules.keys(): + for n in list(sys.modules.keys()): if n.startswith(parent): del sys.modules[n] for mname in mnames: