Commit 76a51a3f authored by Stefan Behnel's avatar Stefan Behnel

Avoid ambiguous error return value in tests.

parent 605cc214
...@@ -28,10 +28,10 @@ cdef int g(int x) nogil: ...@@ -28,10 +28,10 @@ cdef int g(int x) nogil:
y = x + 42 y = x + 42
return y return y
cdef int with_gil_func() except 0 with gil: cdef int with_gil_func() except -1 with gil:
raise Exception("error!") raise Exception("error!")
cdef int nogil_func() nogil except 0: cdef int nogil_func() nogil except -1:
with_gil_func() with_gil_func()
def test_nogil_exception_propagation(): def test_nogil_exception_propagation():
......
...@@ -660,7 +660,7 @@ def outer_parallel_section(): ...@@ -660,7 +660,7 @@ def outer_parallel_section():
sum += inner_parallel_section() sum += inner_parallel_section()
return sum return sum
cdef int nogil_cdef_except_clause() nogil except 0: cdef int nogil_cdef_except_clause() nogil except -1:
return 1 return 1
cdef void nogil_cdef_except_star() nogil except *: cdef void nogil_cdef_except_star() nogil except *:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment