print isn't in pydoc_topics -> ignore

This commit is contained in:
David Halter
2012-12-09 18:09:21 +01:00
parent 3008b96e44
commit b4aca5d490
2 changed files with 12 additions and 2 deletions

View File

@@ -18,7 +18,9 @@ import api
class Base(unittest.TestCase):
def get_def(self, src, pos):
def get_def(self, src, pos=None):
if pos is None:
pos = 1, len(src)
script = api.Script(src, pos[0], pos[1], None)
return script.get_definition()
@@ -254,6 +256,11 @@ class TestRegression(Base):
types = [o.type for o in objs]
assert 'Import' not in types and 'Class' in types
def test_keyword_definition_doc(self):
""" github jedi-vim issue #44 """
defs = self.get_def("print")
assert [d.doc for d in defs]
class TestFeature(Base):
def test_full_name(self):