forked from VimPlug/jedi
More python2.7 fixes.
This commit is contained in:
@@ -41,12 +41,12 @@ def test_builtin_details():
|
|||||||
|
|
||||||
|
|
||||||
def test_nested_resolve():
|
def test_nested_resolve():
|
||||||
class X():
|
class XX():
|
||||||
def x():
|
def x():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
cls = get_completion('X', locals())
|
cls = get_completion('XX', locals())
|
||||||
func = get_completion('X.x', locals())
|
func = get_completion('XX.x', locals())
|
||||||
assert func.start_pos == (cls.start_pos[0] + 1, 12)
|
assert func.start_pos == (cls.start_pos[0] + 1, 12)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -478,5 +478,5 @@ def test_round_trip():
|
|||||||
"""hahaha"""
|
"""hahaha"""
|
||||||
func''')
|
func''')
|
||||||
|
|
||||||
f = FastParser(load_grammar(), source)
|
f = FastParser(load_grammar(), u(source))
|
||||||
assert f.get_parsed_node().get_code() == source
|
assert f.get_parsed_node().get_code() == source
|
||||||
|
|||||||
Reference in New Issue
Block a user