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

Skip to content

Commit 75d26cc

Browse files
committed
Some more test now pass.
1 parent d81206d commit 75d26cc

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

BROKEN

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
test_bsddb test_bsddb3 test_compile test_dumbdbm
22
test_importhooks test_iter test_iterlen test_minidom test_mutants
3-
test_os test_pickletools test_plistlib test_richcmp test_shelve
4-
test_unittest test_userdict
3+
test_os test_plistlib

Lib/UserDict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def values(self):
117117
def items(self):
118118
return list(self.iteritems())
119119
def clear(self):
120-
for key in self.keys():
120+
for key in list(self.iterkeys()):
121121
del self[key]
122122
def setdefault(self, key, default=None):
123123
try:

Lib/test/test_richcmp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def test_dicts(self):
265265
imag1a = {}
266266
for i in range(50):
267267
imag1a[random.randrange(100)*1j] = random.randrange(100)*1j
268-
items = imag1a.items()
268+
items = list(imag1a.items())
269269
random.shuffle(items)
270270
imag1b = {}
271271
for k, v in items:

0 commit comments

Comments
 (0)