summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin R. Thornton <krthornt@uci.edu>2016-02-24 18:02:46 -0800
committerKevin R. Thornton <krthornt@uci.edu>2016-02-24 18:02:46 -0800
commit364695bd2871a4fc25f6fb82b3df79e6a9031d7a (patch)
tree28b9492134cf2420a37fae956c50be83f491f554
parent6372622aac3058fde26abdab971ec4397e7f31aa (diff)
downloadcython-364695bd2871a4fc25f6fb82b3df79e6a9031d7a.tar.gz
add in MRE for devs to look at
-rw-r--r--tests/run/libcpp_all.pyx9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/libcpp_all.pyx b/tests/run/libcpp_all.pyx
index d068f9835..45983bafc 100644
--- a/tests/run/libcpp_all.pyx
+++ b/tests/run/libcpp_all.pyx
@@ -116,3 +116,12 @@ assert vec_alloc_int.size() == 10
cdef libcpp.list.list[int,allocator[int]] list_alloc_int = libcpp.list.list[int,allocator[int]](10,1)
assert list_alloc_int.size() == 10
+
+##Something about the default params breaks the auto-conversion...
+def convert_to_vector(I):
+ """
+ >>> convert_to_vector([1,2,3,4])
+ """
+ cdef vector[int] x = I
+
+