From: Nikita Nemkin Date: Mon, 15 Apr 2013 18:44:09 +0000 (+0600) Subject: Test fixes for autodoc improvements. X-Git-Tag: 0.19.1~31^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8260e75cb9573f0f2e8dc35132bb9ad8d313046;p=platform%2Fupstream%2Fpython-cython.git Test fixes for autodoc improvements. --- diff --git a/tests/run/embedsignatures.pyx b/tests/run/embedsignatures.pyx index 8c3b74a..606582f 100644 --- a/tests/run/embedsignatures.pyx +++ b/tests/run/embedsignatures.pyx @@ -22,8 +22,6 @@ __doc__ = ur""" None >>> print (Ext.attr4.__doc__) attr4 docstring - >>> print (Ext.attr5.__doc__) - attr5 docstring >>> print (Ext.a.__doc__) Ext.a(self) @@ -175,6 +173,9 @@ __doc__ = ur""" >>> print (f_defexpr4.__doc__) f_defexpr4(int x=(Ext.CONST1 + FLAG1) * Ext.CONST2) + + >>> print (f_defexpr5.__doc__) + f_defexpr5(int x=4) """ cdef class Ext: @@ -186,8 +187,6 @@ cdef class Ext: cdef public list attr2 cdef public Ext attr3 cdef int attr4 - cdef attr5 - """private attr5 docstring""" CONST1, CONST2 = 1, 2 @@ -205,11 +204,6 @@ cdef class Ext: def __get__(self): return self.attr4 - property attr5: - """attr5 docstring""" - def __get__(self): - return self.attr4 - def __init__(self, a, b, c=None): pass @@ -377,3 +371,6 @@ cpdef f_defexpr3(int x = Ext.CONST1, f = __builtins__.abs): cpdef f_defexpr4(int x = (Ext.CONST1 + FLAG1) * Ext.CONST2): pass + +cpdef f_defexpr5(int x = 2+2): + pass