summaryrefslogtreecommitdiff
path: root/Lib/test/test_tuple.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-24 19:48:10 +0000
committerGuido van Rossum <guido@python.org>2006-08-24 19:48:10 +0000
commit145bbcdbee3b2b9756ff714967e8d7322bd279c7 (patch)
tree5ea3cb7aaf6ed4addcba1e6ea76fdb043479f555 /Lib/test/test_tuple.py
parent27573ce069d6dc24280dd0dbe47f4ae925b790d1 (diff)
downloadcpython-145bbcdbee3b2b9756ff714967e8d7322bd279c7.tar.gz
Make built-in zip() equal to itertools.izip().
I mea, *really* equal -- for now, the implementation just imports itertools. :-) The only other changes necessary were various unit tests that were assuming zip() returns a real list. No "real" code made this assumption.
Diffstat (limited to 'Lib/test/test_tuple.py')
-rw-r--r--Lib/test/test_tuple.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tuple.py b/Lib/test/test_tuple.py
index dddb03ecc7..96eb6e76eb 100644
--- a/Lib/test/test_tuple.py
+++ b/Lib/test/test_tuple.py
@@ -61,7 +61,7 @@ class TupleTest(seq_tests.CommonTest):
base = range(N)
xp = [(i, j) for i in base for j in base]
inps = base + [(i, j) for i in base for j in xp] + \
- [(i, j) for i in xp for j in base] + xp + zip(base)
+ [(i, j) for i in xp for j in base] + xp + list(zip(base))
collisions = len(inps) - len(set(map(hash, inps)))
self.assert_(collisions <= 15)