diff --git a/jedi/evaluate.py b/jedi/evaluate.py index 6ea7fcf3..e958bd34 100644 --- a/jedi/evaluate.py +++ b/jedi/evaluate.py @@ -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) diff --git a/test/test_regression.py b/test/test_regression.py index 6c17238e..1f81ad64 100755 --- a/test/test_regression.py +++ b/test/test_regression.py @@ -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():