Commit 50b18225 authored by Guido van Rossum's avatar Guido van Rossum

Some more test now pass.

parent 57c98c4e
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
......@@ -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:
......
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment