]> granicus.if.org Git - python/commitdiff
Some more test now pass.
authorGuido van Rossum <guido@python.org>
Thu, 15 Feb 2007 04:01:01 +0000 (04:01 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 15 Feb 2007 04:01:01 +0000 (04:01 +0000)
BROKEN
Lib/UserDict.py
Lib/test/test_richcmp.py

diff --git a/BROKEN b/BROKEN
index 82820cd79c282418f152282488cac41afff6a392..4615d6d1373ded474326a0ecf99e14183ba30a60 100644 (file)
--- a/BROKEN
+++ b/BROKEN
@@ -1,4 +1,3 @@
     test_bsddb test_bsddb3 test_compile test_dumbdbm
     test_importhooks test_iter test_iterlen test_minidom test_mutants
-    test_os test_pickletools test_plistlib test_richcmp test_shelve
-    test_unittest test_userdict
+    test_os test_plistlib
index 7570cef8c2b52bc4be1648e491898787cd97c85b..91508d8201e68c0876cab6c82262687d89339de0 100644 (file)
@@ -117,7 +117,7 @@ class DictMixin:
     def items(self):
         return list(self.iteritems())
     def clear(self):
-        for key in self.keys():
+        for key in list(self.iterkeys()):
             del self[key]
     def setdefault(self, key, default=None):
         try:
index 72a6de891a85d24df8ddce856e1394667e6d5d7b..99ddc30d9bda8d6f9db327c1d814beb283437779 100644 (file)
@@ -265,7 +265,7 @@ class DictTest(unittest.TestCase):
         imag1a = {}
         for i in range(50):
             imag1a[random.randrange(100)*1j] = random.randrange(100)*1j
-        items = imag1a.items()
+        items = list(imag1a.items())
         random.shuffle(items)
         imag1b = {}
         for k, v in items: