@cwd_at('test/test_evaluate/not_in_sys_path/pkg')
def test_import_not_in_sys_path():
 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')

@ cwd_at ( 'test/test_evaluate/not_in_sys_path/pkg' ) def test_import_not_in_sys_path ( ) : 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' )
non-direct imports .