mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
Include statements to Script.definition if it has docstring
This commit is contained in:
@@ -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""")
|
||||
|
||||
Reference in New Issue
Block a user