mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Don't use goto_definitions anymore, use infer
This commit is contained in:
@@ -14,7 +14,7 @@ def interpreter(code, namespace, *args, **kwargs):
|
||||
def test_on_code():
|
||||
from functools import wraps
|
||||
i = interpreter("wraps.__code__", {'wraps': wraps})
|
||||
assert i.goto_definitions()
|
||||
assert i.infer()
|
||||
|
||||
|
||||
@pytest.mark.skipif('sys.version_info < (3,5)')
|
||||
|
||||
Reference in New Issue
Block a user