mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Get rid of deprecations in tests
This commit is contained in:
@@ -71,9 +71,7 @@ def test_nested_namespace_package(Script):
|
||||
|
||||
sys_path = [example_dir]
|
||||
project = Project('.', sys_path=sys_path)
|
||||
script = Script(project=project, source=code)
|
||||
|
||||
result = script.infer(line=1, column=45)
|
||||
result = Script(code, project=project).infer(line=1, column=45)
|
||||
|
||||
assert len(result) == 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user