[Python-3000-checkins] r53854 - in python/branches/p3yk: BROKEN Lib/test/test_importhooks.py

brett.cannon python-3000-checkins at python.org
Thu Feb 22 05:50:24 CET 2007


Author: brett.cannon
Date: Thu Feb 22 05:50:21 2007
New Revision: 53854

Modified:
   python/branches/p3yk/BROKEN
   python/branches/p3yk/Lib/test/test_importhooks.py
Log:
Fix test_importhooks for dict views.


Modified: python/branches/p3yk/BROKEN
==============================================================================
--- python/branches/p3yk/BROKEN	(original)
+++ python/branches/p3yk/BROKEN	Thu Feb 22 05:50:21 2007
@@ -1,2 +1 @@
     test_bsddb test_bsddb3 test_compile test_dumbdbm
-    test_importhooks

Modified: python/branches/p3yk/Lib/test/test_importhooks.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_importhooks.py	(original)
+++ python/branches/p3yk/Lib/test/test_importhooks.py	Thu Feb 22 05:50:21 2007
@@ -254,7 +254,7 @@
         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:


More information about the Python-3000-checkins mailing list