Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r47287:0fdfb1b11f99 Date: 2011-09-16 12:44 +0200 http://bitbucket.org/pypy/pypy/changeset/0fdfb1b11f99/
Log: merge heads diff --git a/pypy/rpython/test/test_rlist.py b/pypy/rpython/test/test_rlist.py --- a/pypy/rpython/test/test_rlist.py +++ b/pypy/rpython/test/test_rlist.py @@ -1363,14 +1363,15 @@ def test_hints(self): from pypy.rlib.objectmodel import newlist from pypy.rpython.annlowlevel import hlstr - - def f(z): - z = hlstr(z) + + strings = ['abc', 'def'] + def f(i): + z = strings[i] x = newlist(sizehint=13) x += z return ''.join(x) - res = self.interpret(f, [self.string_to_ll('abc')]) + res = self.interpret(f, [0]) assert self.ll_to_string(res) == 'abc' class TestLLtype(BaseTestRlist, LLRtypeMixin): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit