summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BROKEN1
-rw-r--r--Lib/test/test_importhooks.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/BROKEN b/BROKEN
index 80523e7..a0a0165 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 5077d98..66c9258 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: