Fix test_importhooks for dict views.

This commit is contained in:
Brett Cannon 2007-02-22 04:50:21 +00:00
parent 0caf6d85f9
commit f0c82f9842
2 changed files with 1 additions and 2 deletions

1
BROKEN
View File

@ -1,2 +1 @@
test_bsddb test_bsddb3 test_compile test_dumbdbm
test_importhooks

View 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: