1
0
forked from VimPlug/jedi

Removed py25 related code (fixes #206)

This commit is contained in:
Danilo Bargen
2013-04-27 16:47:40 +02:00
parent b06e654b92
commit b3d9b6ce69
13 changed files with 23 additions and 128 deletions

View File

@@ -14,7 +14,7 @@ import textwrap
from .base import TestBase, unittest, cwd_at
import jedi
from jedi._compatibility import is_py25, utf8, unicode
from jedi._compatibility import utf8, unicode
from jedi import api
api_classes = api.api_classes
@@ -84,8 +84,7 @@ class TestRegression(TestBase):
def test_keyword_doc(self):
r = list(self.definition("or", (1, 1)))
assert len(r) == 1
if not is_py25:
assert len(r[0].doc) > 100
assert len(r[0].doc) > 100
r = list(self.definition("asfdasfd", (1, 1)))
assert len(r) == 0
@@ -93,8 +92,7 @@ class TestRegression(TestBase):
def test_operator_doc(self):
r = list(self.definition("a == b", (1, 3)))
assert len(r) == 1
if not is_py25:
assert len(r[0].doc) > 100
assert len(r[0].doc) > 100
def test_function_call_signature(self):
defs = self.definition("""
@@ -329,8 +327,6 @@ class TestRegression(TestBase):
assert [d.doc for d in defs]
def test_goto_following_on_imports(self):
if is_py25:
return
g = self.goto("import multiprocessing.dummy; multiprocessing.dummy")
assert len(g) == 1
assert g[0].start_pos != (0, 0)