Fix test_mutants for dict views.

This commit is contained in:
Brett Cannon 2007-02-21 21:59:58 +00:00
parent 67582d2bee
commit ecca313aa4
2 changed files with 2 additions and 2 deletions

2
BROKEN
View file

@ -1,2 +1,2 @@
test_bsddb test_bsddb3 test_compile test_dumbdbm test_bsddb test_bsddb3 test_compile test_dumbdbm
test_importhooks test_iter test_iterlen test_minidom test_mutants test_importhooks test_iter test_iterlen test_minidom

View file

@ -116,7 +116,7 @@ def fill_dict(d, candidates, numentries):
for i in xrange(numentries): for i in xrange(numentries):
d[Horrid(random.choice(candidates))] = \ d[Horrid(random.choice(candidates))] = \
Horrid(random.choice(candidates)) Horrid(random.choice(candidates))
return d.keys() return list(d.keys())
# Test one pair of randomly generated dicts, each with n entries. # Test one pair of randomly generated dicts, each with n entries.
# Note that dict comparison is trivial if they don't have the same number # Note that dict comparison is trivial if they don't have the same number