mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
deprecate 'source_path' as a Script parameter in favour of 'path'
This commit is contained in:
@@ -81,7 +81,7 @@ class TestRegression(TestCase):
|
||||
src2 = 'from .. import setup; setup.ret(1)'
|
||||
# .parser to load the module
|
||||
api.modules.Module(os.path.abspath('dynamic.py'), src2).parser
|
||||
result = Script(src1, source_path='../setup.py').goto_definitions()
|
||||
result = Script(src1, path='../setup.py').goto_definitions()
|
||||
assert len(result) == 1
|
||||
assert result[0].description == 'class int'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user