Author: Matti Picus <matti.pi...@gmail.com> Branch: unicode-utf8-py3 Changeset: r95372:1bd2b4a25f02 Date: 2018-11-27 18:01 -0800 http://bitbucket.org/pypy/pypy/changeset/1bd2b4a25f02/
Log: add two forms of the same test, AppTest fails diff --git a/pypy/objspace/std/test/test_listobject.py b/pypy/objspace/std/test/test_listobject.py --- a/pypy/objspace/std/test/test_listobject.py +++ b/pypy/objspace/std/test/test_listobject.py @@ -25,6 +25,8 @@ assert self.space.eq_w(self.space.len(w_list), w(1)) w_list = W_ListObject(self.space, [w(5), w(3), w(99)]*111) assert self.space.eq_w(self.space.len(w_list), w(333)) + w_list = W_ListObject(self.space, [w(u'\u2039')]) + assert self.space.eq_w(self.space.len(w_list), w(1)) def test_getitem(self): w = self.space.wrap @@ -1397,6 +1399,10 @@ l3 = [s] assert l3[0].encode("ascii", "replace") == b"???" + s = u"\u2039" + l1 = list(s) + assert len(l1) == 1 + def test_list_from_set(self): l = ['a'] l.__init__(set('b')) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit