[pypy-commit] pypy unicode-strategies: yet another listview_unicode test

antocuni noreply at buildbot.pypy.org
Fri Oct 26 21:45:31 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: unicode-strategies
Changeset: r58473:36681180d970
Date: 2012-10-26 19:21 +0200
http://bitbucket.org/pypy/pypy/changeset/36681180d970/

Log:	yet another listview_unicode test

diff --git a/pypy/objspace/std/test/test_liststrategies.py b/pypy/objspace/std/test/test_liststrategies.py
--- a/pypy/objspace/std/test/test_liststrategies.py
+++ b/pypy/objspace/std/test/test_liststrategies.py
@@ -544,7 +544,6 @@
         w_l = self.space.newlist([w_text])
         w_l.getitems = None
         assert space.is_w(space.call_method(space.wrap(u" -- "), "join", w_l), w_text)
-        
 
     def test_newlist_str(self):
         space = self.space
@@ -605,6 +604,11 @@
         w_l = W_ListObject(space, [space.wrap("a"), space.wrap("b")])
         assert self.space.listview_str(w_l) == ["a", "b"]
 
+    def test_listview_unicode_list(self):
+        space = self.space
+        w_l = W_ListObject(space, [space.wrap(u"a"), space.wrap(u"b")])
+        assert self.space.listview_unicode(w_l) == [u"a", u"b"]
+
     def test_listview_int_list(self):
         space = self.space
         w_l = W_ListObject(space, [space.wrap(1), space.wrap(2), space.wrap(3)])


More information about the pypy-commit mailing list