Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r58920:1df3d169fab9
Date: 2012-11-14 15:01 -0800
http://bitbucket.org/pypy/pypy/changeset/1df3d169fab9/
Log: +bytes/bytearray, -unicode tests
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
@@ -55,12 +55,18 @@
def test_list(self):
self._test_length_hint(self.space.wrap(self.ITEMS))
+ def test_bytes(self):
+ self._test_length_hint(self.space.wrapbytes('P' * self.SIZE))
+
+ def test_bytearray(self):
+ space = self.space
+ w_bytearray = space.call_function(space.w_bytearray,
+ space.wrapbytes('P' * self.SIZE))
+ self._test_length_hint(w_bytearray)
+
def test_str(self):
self._test_length_hint(self.space.wrap('P' * self.SIZE))
- def test_unicode(self):
- self._test_length_hint(self.space.wrap(u'Y' * self.SIZE))
-
def test_tuple(self):
self._test_length_hint(self.space.newtuple(self.ITEMS))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit