From 0d46fbe9ec9b16ced9ea6ce32b87371fb933f195 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 5 Nov 2009 10:48:43 -0800 Subject: [PATCH] Move cpp_exceptions_helper.cpp to cpp_exceptions_helper.h so it is picked up by sdist. --HG-- rename : tests/run/cpp_exceptions_helper.cpp => tests/run/cpp_exceptions_helper.h --- tests/run/cpp_exceptions.pyx | 2 +- .../run/{cpp_exceptions_helper.cpp => cpp_exceptions_helper.h} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/run/{cpp_exceptions_helper.cpp => cpp_exceptions_helper.h} (100%) diff --git a/tests/run/cpp_exceptions.pyx b/tests/run/cpp_exceptions.pyx index 6fa26a9b..e7707a7a 100644 --- a/tests/run/cpp_exceptions.pyx +++ b/tests/run/cpp_exceptions.pyx @@ -1,7 +1,7 @@ cdef int raise_py_error() except *: raise TypeError("custom") -cdef extern from "cpp_exceptions_helper.cpp": +cdef extern from "cpp_exceptions_helper.h": cdef int raise_int_raw "raise_int"(bint fire) except + cdef int raise_int_value "raise_int"(bint fire) except +ValueError cdef int raise_int_custom "raise_int"(bint fire) except +raise_py_error diff --git a/tests/run/cpp_exceptions_helper.cpp b/tests/run/cpp_exceptions_helper.h similarity index 100% rename from tests/run/cpp_exceptions_helper.cpp rename to tests/run/cpp_exceptions_helper.h -- 2.26.2