[pypy-commit] pypy default: fix for ootype, llstrings are not supported as input arguments
antocuni
noreply at buildbot.pypy.org
Fri Sep 16 11:49:34 CEST 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r47283:a03db4de5707
Date: 2011-09-16 11:49 +0200
http://bitbucket.org/pypy/pypy/changeset/a03db4de5707/
Log: fix for ootype, llstrings are not supported as input arguments
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):
More information about the pypy-commit
mailing list