[pypy-svn] r20406 - pypy/branch/somepbc-refactoring/pypy/translator/c/test
arigo at codespeak.net
arigo at codespeak.net
Tue Nov 29 17:52:41 CET 2005
Author: arigo
Date: Tue Nov 29 17:52:40 2005
New Revision: 20406
Modified:
pypy/branch/somepbc-refactoring/pypy/translator/c/test/test_typed.py
Log:
Added a test for the broken recursion detection.
Modified: pypy/branch/somepbc-refactoring/pypy/translator/c/test/test_typed.py
==============================================================================
--- pypy/branch/somepbc-refactoring/pypy/translator/c/test/test_typed.py (original)
+++ pypy/branch/somepbc-refactoring/pypy/translator/c/test/test_typed.py Tue Nov 29 17:52:40 2005
@@ -394,4 +394,6 @@
return f(n-1, accum*n)
fn = self.getcompiled(f)
assert fn(7, 1) == 5040
+ assert fn(7, 1) == 5040 # detection must work several times, too
+ assert fn(7, 1) == 5040
py.test.raises(RuntimeError, fn, -1, 0)
More information about the Pypy-commit
mailing list