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

@@ -8,6 +8,7 @@ from jedi.parser import tokenize
from jedi.parser.python import parse
from jedi.common import splitlines
from jedi.parser.tokenize import TokenInfo
from jedi.parser_utils import safe_literal_eval
from ..helpers import unittest
@@ -141,7 +142,7 @@ class TokenTest(unittest.TestCase):
string_tok = expr_stmt.children[2]
assert string_tok.type == 'string'
assert string_tok.value == s
assert string_tok.eval() == 'test'
assert safe_literal_eval(string_tok.value) == 'test'
def test_tokenizer_with_string_literal_backslash():