]> granicus.if.org Git - python/commitdiff
Fix test_importhooks for dict views.
authorBrett Cannon <bcannon@gmail.com>
Thu, 22 Feb 2007 04:50:21 +0000 (04:50 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 22 Feb 2007 04:50:21 +0000 (04:50 +0000)
BROKEN
Lib/test/test_importhooks.py

diff --git a/BROKEN b/BROKEN
index 80523e7d9ae951f947ed50061d06126a02a073d3..a0a0165929042ee93890b6dc7f7d84edd2c50af2 100644 (file)
--- a/BROKEN
+++ b/BROKEN
@@ -1,2 +1 @@
     test_bsddb test_bsddb3 test_compile test_dumbdbm
-    test_importhooks
index 5077d981dd605cc0af4fc8a4ca2cde58b6a8f231..66c92586304a8a0cf7658b21d85f5982587cdf54 100644 (file)
@@ -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: