Commit d28d9407 authored by Brett Cannon's avatar Brett Cannon

Fix test_importhooks for dict views.

parent 653d7e7e
test_bsddb test_bsddb3 test_compile test_dumbdbm
test_importhooks
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment