1
0
forked from VimPlug/jedi

Fix various bugs.

This commit is contained in:
Dave Halter
2014-09-26 12:22:56 +02:00
parent ce3ec6b534
commit 3add6e4289
3 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ class TestCallAndName():
def test_call_type(self):
call = self.get_call('hello')
assert isinstance(call, pr.Call)
assert type(call.name) == pr.Name
assert type(call.name) == pr.NamePart
def test_literal_type(self):
literal = self.get_call('1.0')

View File

@@ -26,4 +26,4 @@ asdfasdf""" + "h"
def test_tokenizer_with_string_literal_backslash():
import jedi
c = jedi.Script("statement = u'foo\\\n'; statement").goto_definitions()
assert c[0]._name.parent.parent.obj == 'foo'
assert c[0]._name.parent.obj == 'foo'