summaryrefslogtreecommitdiff
path: root/tests/run/nogil_conditional.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/nogil_conditional.pyx')
-rw-r--r--tests/run/nogil_conditional.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run/nogil_conditional.pyx b/tests/run/nogil_conditional.pyx
index eba22d5b2..92eff0853 100644
--- a/tests/run/nogil_conditional.pyx
+++ b/tests/run/nogil_conditional.pyx
@@ -34,7 +34,7 @@ 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()
@@ -51,7 +51,7 @@ def test_nogil_exception_propagation():
nogil_func()
-cdef int write_unraisable() nogil:
+cdef int write_unraisable() noexcept nogil:
with gil:
raise ValueError()