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

@@ -12,7 +12,6 @@ import pytest
from jedi import Script
from jedi import api
from jedi.evaluate import imports
from parso.python import parse
from .helpers import TestCase, cwd_at
#jedi.set_debug_function()
@@ -97,14 +96,6 @@ class TestRegression(TestCase):
self.assertEqual([d.description for d in defs],
['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):
r"""
Find definitions specified by `after_cursor` and check what found