mirror of https://github.com/python/cpython
Fix test_importhooks for dict views.
This commit is contained in:
parent
0caf6d85f9
commit
f0c82f9842
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue