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

View file

@ -116,7 +116,7 @@ def fill_dict(d, candidates, numentries):
for i in xrange(numentries):
d[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.
# Note that dict comparison is trivial if they don't have the same number