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
commit0db5e3b6db3fc7732b963e5dd0068c7517b56353 (patch)
tree3cf9d51e2ed1c848d54a460c455982bc0e18fece /tests/test_autodoc.py
parent93a45c27161bd8f7890f4bdca873ad49b7aaca91 (diff)
downloadsphinx-0db5e3b6db3fc7732b963e5dd0068c7517b56353.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 c482315a..965064c3 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