Include statements to Script.definition if it has docstring

This commit is contained in:
Takafumi Arakaki committed 2013-02-24 20:56:09 +01:00
1 parent e458b35f1c
commit aad9c34db6
2 files changed
+4 -2

No files matched your search

+1 -2
View File
@@ -338,8 +338,7 @@ class TestDocstring(TestBase):
self.assertEqual(defs[0].raw_doc, 'Docstring of `func`.')
def test_attribute_docstring(self):
# TODO: use self.definition
defs = self.goto("""
defs = self.definition("""
x = None
'''Docstring of `x`.'''
x""")