summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-04-03 08:23:44 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-07-22 09:26:06 +0200
commitbf4979e2441ffbc9aaeb88f5c67608578040588f (patch)
treeaf8715faab3be4e64b691c4bb2aa30251c7117cb
parent3a34c5fb48ee86be9d0a819fee1ff3cb3efd1a1e (diff)
downloadcython-bf4979e2441ffbc9aaeb88f5c67608578040588f.tar.gz
Make a helper function in a C++ test correctly propagate exceptions so that it won't have to spit out compiler warnings.
-rw-r--r--tests/run/cpp_stl_conversion.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/cpp_stl_conversion.pyx b/tests/run/cpp_stl_conversion.pyx
index 578915a0b..3ea404d25 100644
--- a/tests/run/cpp_stl_conversion.pyx
+++ b/tests/run/cpp_stl_conversion.pyx
@@ -15,7 +15,7 @@ py_set = set
py_xrange = xrange
py_unicode = unicode
-cdef string add_strings(string a, string b):
+cdef string add_strings(string a, string b) except *:
return a + b
def normalize(bytes b):