From 0db5e3b6db3fc7732b963e5dd0068c7517b56353 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 15 Jan 2011 15:40:59 +0100 Subject: #431: Doc comments for attributes can now be given on the same line as the assignment. --- tests/test_autodoc.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_autodoc.py') 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 -- cgit v1.2.1