1
0
forked from VimPlug/jedi

Move a test to parso.

This commit is contained in:
Dave Halter
2017-05-24 00:41:55 -04:00
parent cd8932fbfc
commit 7173559182
2 changed files with 1 additions and 10 deletions

View File

@@ -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

View File

@@ -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