Exception propagation test.
authorRobert Bradshaw <robertwb@math.washington.edu>
Sun, 14 Nov 2010 07:23:51 +0000 (23:23 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sun, 14 Nov 2010 07:23:51 +0000 (23:23 -0800)
tests/run/exceptionpropagation.pyx

index 411d436b6bcf45b9aaf60676b162ecb50e11e611..a95c3a4cfc39e44f248e1009d62d599a53bf49a0 100644 (file)
@@ -28,3 +28,17 @@ def test_except_expr(bint fire):
     RuntimeError
     """
     except_expr(fire)
+
+cdef double except_big_result(bint fire) except 100000000000000000000000000000000:
+    if fire:
+        raise RuntimeError
+
+def test_except_big_result(bint fire):
+    """
+    >>> test_except_big_result(False)
+    >>> test_except_big_result(True)
+    Traceback (most recent call last):
+    ...
+    RuntimeError
+    """
+    except_big_result(fire)