summaryrefslogtreecommitdiff
path: root/tests/run/embedsignatures.pyx
diff options
context:
space:
mode:
authorNikita Nemkin <nikita@nemkin.ru>2013-04-21 14:26:16 +0600
committerNikita Nemkin <nikita@nemkin.ru>2013-04-21 14:26:16 +0600
commit409e24f6a78a677a78861bf5ea039e4470b773eb (patch)
tree2f527078d36595935f0321e508e3694512e8021d /tests/run/embedsignatures.pyx
parentd8260e75cb9573f0f2e8dc35132bb9ad8d313046 (diff)
downloadcython-409e24f6a78a677a78861bf5ea039e4470b773eb.tar.gz
Removed the warning about docstrings for private attributes. Fixed erroneous docstring recognition past the blank line.
Diffstat (limited to 'tests/run/embedsignatures.pyx')
-rw-r--r--tests/run/embedsignatures.pyx10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/run/embedsignatures.pyx b/tests/run/embedsignatures.pyx
index 606582f5b..81997df6a 100644
--- a/tests/run/embedsignatures.pyx
+++ b/tests/run/embedsignatures.pyx
@@ -22,6 +22,9 @@ __doc__ = ur"""
None
>>> print (Ext.attr4.__doc__)
attr4 docstring
+ >>> print (Ext.attr5.__doc__)
+ attr5: 'int'
+ attr5 docstring
>>> print (Ext.a.__doc__)
Ext.a(self)
@@ -185,8 +188,13 @@ cdef class Ext:
cdef public attr1
"""attr1 docstring"""
cdef public list attr2
- cdef public Ext attr3
+ cdef public Ext attr3
+
+ """NOT attr3 docstring"""
cdef int attr4
+ cdef public int \
+ attr5
+ """attr5 docstring"""
CONST1, CONST2 = 1, 2