diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-02-22 04:50:21 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-02-22 04:50:21 (GMT) |
commit | f0c82f9842c76a0b1c287c20d9e2061bbc134739 (patch) | |
tree | 1ea68d7c746ba93ba2cac5e68b03f9207400eb6a | |
parent | 0caf6d85f98f3cffde22a91ccb9e043758402bf7 (diff) | |
download | cpython-f0c82f9842c76a0b1c287c20d9e2061bbc134739.zip cpython-f0c82f9842c76a0b1c287c20d9e2061bbc134739.tar.gz cpython-f0c82f9842c76a0b1c287c20d9e2061bbc134739.tar.bz2 |
Fix test_importhooks for dict views.
-rw-r--r-- | BROKEN | 1 | ||||
-rw-r--r-- | Lib/test/test_importhooks.py | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -1,2 +1 @@ test_bsddb test_bsddb3 test_compile test_dumbdbm - test_importhooks diff --git a/Lib/test/test_importhooks.py b/Lib/test/test_importhooks.py index 5077d98..66c9258 100644 --- a/Lib/test/test_importhooks.py +++ b/Lib/test/test_importhooks.py @@ -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: |