Author: Maciej Fijalkowski <[email protected]>
Branch: elidable-canfold-exception
Changeset: r70096:361433cd94a2
Date: 2014-03-18 14:16 +0200
http://bitbucket.org/pypy/pypy/changeset/361433cd94a2/

Log:    failing test

diff --git a/rpython/jit/metainterp/test/test_call.py 
b/rpython/jit/metainterp/test/test_call.py
--- a/rpython/jit/metainterp/test/test_call.py
+++ b/rpython/jit/metainterp/test/test_call.py
@@ -44,6 +44,25 @@
 
         self.meta_interp(main, [10])
 
+    def test_call_elidable_raise(self):
+        @jit.elidable(canfolderror=(ValueError,))
+        def f(a):
+            raise ValueError
+
+        driver = jit.JitDriver(greens = [], reds = 'auto')
+
+        def main(n):
+            while n >= 0:
+                driver.jit_merge_point()
+                try:
+                    f(1)
+                except ValueError:
+                    pass
+                n -= 1
+
+        self.meta_interp(main, [10])
+        self.check_simple_loop(call=0)
+
     def test_cond_call(self):
         def f(l, n):
             l.append(n)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to