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

Skip to content

Commit ecca313

Browse files
committed
Fix test_mutants for dict views.
1 parent 67582d2 commit ecca313

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

BROKEN

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
test_bsddb test_bsddb3 test_compile test_dumbdbm
2-
test_importhooks test_iter test_iterlen test_minidom test_mutants
2+
test_importhooks test_iter test_iterlen test_minidom

Lib/test/test_mutants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def fill_dict(d, candidates, numentries):
116116
for i in xrange(numentries):
117117
d[Horrid(random.choice(candidates))] = \
118118
Horrid(random.choice(candidates))
119-
return d.keys()
119+
return list(d.keys())
120120

121121
# Test one pair of randomly generated dicts, each with n entries.
122122
# Note that dict comparison is trivial if they don't have the same number

0 commit comments

Comments
 (0)