Author: Manuel Jacob
Branch: remove-iter-smm
Changeset: r64442:3bdb25b6cbd4
Date: 2013-05-22 12:21 +0200
http://bitbucket.org/pypy/pypy/changeset/3bdb25b6cbd4/

Log:    Correctly wrap tuples.

diff --git a/pypy/objspace/std/test/test_lengthhint.py 
b/pypy/objspace/std/test/test_lengthhint.py
--- a/pypy/objspace/std/test/test_lengthhint.py
+++ b/pypy/objspace/std/test/test_lengthhint.py
@@ -74,7 +74,7 @@
         self._test_length_hint(self.space.wrap(u'Y' * self.SIZE))
 
     def test_tuple(self):
-        self._test_length_hint(self.space.newtuple(self.ITEMS))
+        self._test_length_hint(self.space.wrap(tuple(self.ITEMS)))
 
     def test_reversed(self):
         # test the generic reversed iterator (w_foo lacks __reversed__)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to