Progress in removing the docstring/call signature logic from the parser.

This commit is contained in:
Dave Halter
2017-04-18 18:48:05 +02:00
parent deb028c3fb
commit b4631d6dd4
9 changed files with 116 additions and 109 deletions

View File

@@ -5,6 +5,7 @@ from jedi.parser.python import load_grammar
from jedi.evaluate import compiled, instance
from jedi.evaluate.representation import FunctionContext
from jedi.evaluate import Evaluator
from jedi.parser_utils import clean_scope_docstring
from jedi import Script
@@ -33,7 +34,8 @@ def test_fake_loading():
def test_fake_docstr():
assert compiled.create(_evaluator(), next).tree_node.raw_doc == next.__doc__
node = compiled.create(_evaluator(), next).tree_node
assert clean_scope_docstring(node) == next.__doc__
def test_parse_function_doc_illegal_docstr():