[pypy-svn] r51953 - pypy/branch/jit-refactoring/pypy/jit/rainbow/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Fri Feb 29 12:52:02 CET 2008
Author: cfbolz
Date: Fri Feb 29 12:52:02 2008
New Revision: 51953
Modified:
pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py
Log:
this needs an indirection because otherwise the portal reentry will take care
of things and the test would not test the real problem.
Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py (original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py Fri Feb 29 12:52:02 2008
@@ -1121,12 +1121,14 @@
def test_recursive_with_red_termination_condition(self):
py.test.skip('Does not terminate')
+ def indirection(n):
+ return ll_factorial
def ll_factorial(n):
if n <= 0:
return 1
return n * ll_factorial(n - 1)
- res = self.interpret(ll_factorial, [5], [])
+ res = self.interpret(indirection, [5], [])
assert res == 120
def test_simple_indirect_call(self):
More information about the Pypy-commit
mailing list