diff options
Diffstat (limited to 'tests/errors/w_numpy_arr_as_cppvec_ref.pyx')
-rw-r--r-- | tests/errors/w_numpy_arr_as_cppvec_ref.pyx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/errors/w_numpy_arr_as_cppvec_ref.pyx b/tests/errors/w_numpy_arr_as_cppvec_ref.pyx index e7fbaeece..d3a70dbed 100644 --- a/tests/errors/w_numpy_arr_as_cppvec_ref.pyx +++ b/tests/errors/w_numpy_arr_as_cppvec_ref.pyx @@ -1,10 +1,12 @@ # mode: error -# tag: cpp, werror, numpy +# tag: cpp, werror, numpy, no-cpp-locals import numpy as np cimport numpy as np from libcpp.vector cimport vector +np.import_array() + cdef extern from *: void cpp_function_vector1(vector[int]) void cpp_function_vector2(vector[int] &) @@ -24,8 +26,8 @@ def main(): _ERRORS = """ -17:25: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. -18:25: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. -19:28: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. -19:33: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. +19:25: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. +20:25: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. +21:28: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. +21:33: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. """ |