summaryrefslogtreecommitdiff
path: root/tests/run/nogil.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/nogil.pyx')
-rw-r--r--tests/run/nogil.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run/nogil.pyx b/tests/run/nogil.pyx
index efaee4ff6..356021149 100644
--- a/tests/run/nogil.pyx
+++ b/tests/run/nogil.pyx
@@ -71,7 +71,7 @@ def test_get_gil_in_nogil():
cdef int with_gil_func() except -1 with gil:
raise Exception("error!")
-cdef int nogil_func() nogil except -1:
+cdef int nogil_func() except -1 nogil:
with_gil_func()
def test_nogil_exception_propagation():
@@ -85,7 +85,7 @@ def test_nogil_exception_propagation():
nogil_func()
-cdef int write_unraisable() nogil:
+cdef int write_unraisable() noexcept nogil:
with gil:
raise ValueError()