[pypy-commit] pypy py3k: 2to3

pjenvey noreply at buildbot.pypy.org
Thu May 2 21:25:18 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63806:aeb541bf1ab8
Date: 2013-05-02 12:22 -0700
http://bitbucket.org/pypy/pypy/changeset/aeb541bf1ab8/

Log:	2to3

diff --git a/pypy/module/__builtin__/test/test_zip.py b/pypy/module/__builtin__/test/test_zip.py
--- a/pypy/module/__builtin__/test/test_zip.py
+++ b/pypy/module/__builtin__/test/test_zip.py
@@ -15,9 +15,9 @@
 
     def test_two_lists(self):
         # uses a different code path
-        assert zip([1, 2, 3], [3, 4, 5]) == [(1, 3), (2, 4), (3, 5)]
-        assert zip([1, 2, 3], [3, 4]) == [(1, 3), (2, 4)]
-        assert zip([1, 2], [3, 4, 5]) == [(1, 3), (2, 4)]
+        assert list(zip([1, 2, 3], [3, 4, 5])) == [(1, 3), (2, 4), (3, 5)]
+        assert list(zip([1, 2, 3], [3, 4])) == [(1, 3), (2, 4)]
+        assert list(zip([1, 2], [3, 4, 5])) == [(1, 3), (2, 4)]
 
     def test_three_lists_same_size(self):
         assert list(zip([1, 2, 3], [3, 4, 5], [6, 7, 8])) == (


More information about the pypy-commit mailing list