Commit 6a65938a authored by Robert Bradshaw's avatar Robert Bradshaw

Fix error test.

parent af201548
...@@ -2400,6 +2400,13 @@ class CreateClosureClasses(CythonTransform): ...@@ -2400,6 +2400,13 @@ class CreateClosureClasses(CythonTransform):
self.visitchildren(node) self.visitchildren(node)
return node return node
def visit_CFuncDefNode(self, node):
if not node.overridable:
return self.visit_FuncDefNode(node)
else:
self.visitchildren(node)
return node
class GilCheck(VisitorTransform): class GilCheck(VisitorTransform):
""" """
......
# mode: error # mode: error
cdef cdef_yield():
def inner():
pass
cpdef cpdef_yield(): cpdef cpdef_yield():
def inner(): def inner():
pass pass
_ERRORS = u""" _ERRORS = u"""
3:5: closures inside cdef functions not yet supported 3:6: closures inside cpdef functions not yet supported
7:6: closures inside cdef functions not yet supported
""" """
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