Commit bb94c0e5 authored by Stefan Behnel's avatar Stefan Behnel

Make a working test actually test something.

parent ae4e39db
......@@ -7,12 +7,18 @@ cdef class C:
cpdef float c
def func():
cpdef d=C()
"""
>>> c = func()
>>> isinstance(c, C) or c
True
"""
cpdef d = C()
return d
_WARNINGS = """
3:6: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
4:6: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
7:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
10:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
15:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
"""
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