The tokenize endmarker should really be the maximum position possible. Caused matplotlib to fail. Fixes davidhalter/jedi-vim#377.

This commit is contained in:
Dave Halter
2015-04-27 19:01:45 +02:00
parent 47d468a9bc
commit 902482568e
2 changed files with 16 additions and 2 deletions

View File

@@ -425,3 +425,16 @@ def test_incomplete_function():
script = jedi.Script(dedent(source), 1, 3)
assert script.completions()
def test_string_literals():
"""Simplified case of jedi-vim#377."""
source = dedent("""
x = ur''' '''
def foo():
pass
x""")
script = jedi.Script(dedent(source))
assert script.completions()