forked from VimPlug/jedi
Move a test to parso.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from jedi._compatibility import is_py3
|
from jedi._compatibility import is_py3
|
||||||
from jedi import parser_utils
|
from jedi import parser_utils
|
||||||
from parso.python import parse
|
from parso import parse
|
||||||
from parso.python import tree
|
from parso.python import tree
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import pytest
|
|||||||
from jedi import Script
|
from jedi import Script
|
||||||
from jedi import api
|
from jedi import api
|
||||||
from jedi.evaluate import imports
|
from jedi.evaluate import imports
|
||||||
from parso.python import parse
|
|
||||||
from .helpers import TestCase, cwd_at
|
from .helpers import TestCase, cwd_at
|
||||||
|
|
||||||
#jedi.set_debug_function()
|
#jedi.set_debug_function()
|
||||||
@@ -97,14 +96,6 @@ class TestRegression(TestCase):
|
|||||||
self.assertEqual([d.description for d in defs],
|
self.assertEqual([d.description for d in defs],
|
||||||
['def f', 'class C'])
|
['def f', 'class C'])
|
||||||
|
|
||||||
def test_end_pos_line(self):
|
|
||||||
# jedi issue #150
|
|
||||||
s = "x()\nx( )\nx( )\nx ( )"
|
|
||||||
module = parse(s)
|
|
||||||
for i, simple_stmt in enumerate(module.children[:-1]):
|
|
||||||
expr_stmt = simple_stmt.children[0]
|
|
||||||
assert expr_stmt.end_pos == (i + 1, i + 3)
|
|
||||||
|
|
||||||
def check_definition_by_marker(self, source, after_cursor, names):
|
def check_definition_by_marker(self, source, after_cursor, names):
|
||||||
r"""
|
r"""
|
||||||
Find definitions specified by `after_cursor` and check what found
|
Find definitions specified by `after_cursor` and check what found
|
||||||
|
|||||||
Reference in New Issue
Block a user