Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0c82f9

Browse files
committed
Fix test_importhooks for dict views.
1 parent 0caf6d8 commit f0c82f9

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

BROKEN

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
test_bsddb test_bsddb3 test_compile test_dumbdbm
2-
test_importhooks

Lib/test/test_importhooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def testImpWrapper(self):
254254
mnames = ("colorsys", "urlparse", "distutils.core", "compiler.misc")
255255
for mname in mnames:
256256
parent = mname.split(".")[0]
257-
for n in sys.modules.keys():
257+
for n in list(sys.modules.keys()):
258258
if n.startswith(parent):
259259
del sys.modules[n]
260260
for mname in mnames:

0 commit comments

Comments
 (0)