From 540eff3d42d102a4ae683074e13aa45ed851aa02 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Sun, 24 Feb 2013 17:59:08 +0100 Subject: [PATCH] Add test_attribute_docstring --- test/regression.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/regression.py b/test/regression.py index fd5b4299..313b6a30 100755 --- a/test/regression.py +++ b/test/regression.py @@ -337,6 +337,14 @@ class TestDocstring(TestBase): func""") self.assertEqual(defs[0].raw_doc, 'Docstring of `func`.') + def test_attribute_docstring(self): + # TODO: use self.definition + defs = self.goto(""" + x = None + '''Docstring of `x`.''' + x""") + self.assertEqual(defs[0].raw_doc, 'Docstring of `x`.') + class TestFeature(TestBase): def test_full_name(self):