Commit 7621f44f authored by Stefan Behnel's avatar Stefan Behnel

fix cpp_vector_in_generator test by calling create_from_py_utility_code()...

fix cpp_vector_in_generator test by calling create_from_py_utility_code() early enough to let it inject Cython utility code
parent 72f826ca
......@@ -2758,6 +2758,15 @@ class DefNodeWrapper(FuncDefNode):
self.signature = target_entry.signature
# This is only really required for Cython utility code at this time,
# everything else can be done during code generation. But we expand
# all utility code here, simply because we cannot easily distinguish
# different code types.
for arg in self.args:
if not arg.type.is_pyobject:
if not arg.type.create_from_py_utility_code(env):
pass # will fail later
def signature_has_nongeneric_args(self):
argcount = len(self.args)
if argcount == 0 or (
......
......@@ -10,9 +10,3 @@ def stack_vector_in_generator(vector[int] vint):
"""
for i in vint:
yield i
def vector_arg_in_function(py_v):
"""
>>> print "Unneeded function with side effect."
"""
cdef vector[int] v = py_v
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment