summaryrefslogtreecommitdiff
path: root/tests/test_autodoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-15 15:40:59 +0100
committerGeorg Brandl <georg@python.org>2011-01-15 15:40:59 +0100
commita63230f12d1f5af6de24a59ba12c17cc8943cdcd (patch)
tree3cf9d51e2ed1c848d54a460c455982bc0e18fece /tests/test_autodoc.py
parentbb7b30d91278762b1976d6f135bbc4c0f2eccde1 (diff)
downloadsphinx-git-a63230f12d1f5af6de24a59ba12c17cc8943cdcd.tar.gz
#431: Doc comments for attributes can now be given on the same line as the assignment.
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r--tests/test_autodoc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py
index c482315a6..965064c37 100644
--- a/tests/test_autodoc.py
+++ b/tests/test_autodoc.py
@@ -425,6 +425,7 @@ def test_generate():
('attribute', 'test_autodoc.Class.udocattr'),
('attribute', 'test_autodoc.Class.mdocattr'),
('attribute', 'test_autodoc.Class.inst_attr_comment'),
+ ('attribute', 'test_autodoc.Class.inst_attr_inline'),
('attribute', 'test_autodoc.Class.inst_attr_string'),
('method', 'test_autodoc.Class.moore'),
])
@@ -621,6 +622,7 @@ class Class(Base):
docstring="moore(a, e, f) -> happiness")
def __init__(self, arg):
+ self.inst_attr_inline = None #: an inline documented instance attr
#: a documented instance attribute
self.inst_attr_comment = None
self.inst_attr_string = None