[pypy-svn] r55820 - pypy/branch/oo-jit/pypy/jit/rainbow/test
antocuni at codespeak.net
antocuni at codespeak.net
Fri Jun 13 17:04:30 CEST 2008
Author: antocuni
Date: Fri Jun 13 17:04:29 2008
New Revision: 55820
Modified:
pypy/branch/oo-jit/pypy/jit/rainbow/test/test_promotion.py
Log:
yai, all promotion tests passes on ootype!
Modified: pypy/branch/oo-jit/pypy/jit/rainbow/test/test_promotion.py
==============================================================================
--- pypy/branch/oo-jit/pypy/jit/rainbow/test/test_promotion.py (original)
+++ pypy/branch/oo-jit/pypy/jit/rainbow/test/test_promotion.py Fri Jun 13 17:04:29 2008
@@ -374,6 +374,7 @@
res == 1
def test_raise_result_mixup_some_more(self):
+ from pypy.rpython.annlowlevel import hlstr
def w(x):
if x > 1000:
return None
@@ -387,7 +388,9 @@
e = w(x)
raise e
return x
- def ll_function(c, x):
+ def ll_function(c1, x):
+ # needed so that both lltype and ootype can index the string with []
+ c = hlstr(c1)
i = 0
while True:
hint(None, global_merge_point=True)
@@ -401,9 +404,9 @@
i = x
r = hint(i, variable=True)
return r
- ll_function.convert_arguments = [LLSupport.to_rstr, int]
+ ll_function.convert_arguments = [self.to_rstr, int]
- assert ll_function("oe", 1) == 1
+ assert ll_function(self.to_rstr("oe"), 1) == 1
res = self.interpret(ll_function, ["oe", 1], [],
policy=StopAtXPolicy(w))
@@ -478,8 +481,3 @@
class TestOOType(OOTypeMixin, BaseTestPromotion):
type_system = "ootype"
to_rstr = staticmethod(OOSupport.to_rstr)
-
- def skip(self):
- py.test.skip('in progress')
-
- test_raise_result_mixup_some_more = skip
More information about the Pypy-commit
mailing list