1
0
forked from VimPlug/jedi

test a little bit more with the not in sys path packages

This commit is contained in:
David Halter
2013-10-11 23:41:38 +04:30
parent 873fc16247
commit 099fe4eeb3
4 changed files with 12 additions and 1 deletions

View File

@@ -17,5 +17,10 @@ def test_import_not_in_sys_path():
"""
non-direct imports (not in sys.path)
"""
a = jedi.Script(path='module.py', line=3).goto_definitions()
a = jedi.Script(path='module.py', line=5).goto_definitions()
assert a[0].name == 'int'
a = jedi.Script(path='module.py', line=6).goto_definitions()
assert a[0].name == 'str'
a = jedi.Script(path='module.py', line=7).goto_definitions()
assert a[0].name == 'str'