Move the last test out of test_regressions and delete the file

This also deletes a test that probably has become useful because the issue it tested was caused by code that doesn't exist anymore
This commit is contained in:
Dave Halter
2017-12-29 20:34:52 +01:00
parent 01ffd2f981
commit 68381e09c9
3 changed files with 13 additions and 51 deletions

View File

@@ -273,3 +273,15 @@ def test_no_statement_parent(Script):
defs = Script(source, column=3).goto_definitions()
defs = sorted(defs, key=lambda d: d.line)
assert [d.description for d in defs] == ['def f', 'class C']
def test_backslash_continuation_and_bracket(Script):
code = dedent(r"""
x = 0
a = \
[1, 2, 3, (x)]""")
lines = code.splitlines()
column = lines[-1].index('(')
def_, = Script(code, line=len(lines), column=column).goto_definitions()
assert def_.name == 'int'

View File

@@ -4,7 +4,7 @@ import pytest
from jedi import api
from jedi.evaluate import imports
from .helpers import cwd_at
from ..helpers import cwd_at
@pytest.mark.skipif('True', reason='Skip for now, test case is not really supported.')