removed statement docstr stuff for now. it will be reintroduced when using the evaluator class

This commit is contained in:
David Halter
2013-07-19 13:17:27 +02:00
parent ebc8d4c04c
commit 6017daded5
2 changed files with 6 additions and 2 deletions

View File

@@ -263,8 +263,10 @@ def find_name(scope, name_str, position=None, search_global=False,
# so just ignore it.
continue
if r.docstr:
res_new.append(r)
# Remove the statement docstr stuff for now, that has to be
# implemented with the evaluator class.
#if r.docstr:
#res_new.append(r)
scopes = follow_statement(r, seek_name=name_str)
add += remove_statements(scopes)

View File

@@ -442,6 +442,7 @@ class TestDocstring(TestBase):
func""")
self.assertEqual(defs[0].raw_doc, 'Docstring of `func`.')
@unittest.skip('need evaluator class for that')
def test_attribute_docstring(self):
defs = self.goto_definitions("""
x = None
@@ -449,6 +450,7 @@ class TestDocstring(TestBase):
x""")
self.assertEqual(defs[0].raw_doc, 'Docstring of `x`.')
@unittest.skip('need evaluator class for that')
def test_multiple_docstrings(self):
defs = self.goto_definitions("""
def func():