mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix test_importhooks for dict views.
This commit is contained in:
parent
0caf6d85f9
commit
f0c82f9842
2 changed files with 1 additions and 2 deletions
1
BROKEN
1
BROKEN
|
@ -1,2 +1 @@
|
|||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue