mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Use a different sys path for import completions and import type inference
Fix tests of the #1451 pull request
This commit is contained in:
@@ -115,6 +115,8 @@ def test_find_module_not_package_zipped(Script, inference_state, environment):
|
||||
def test_import_not_in_sys_path(Script):
|
||||
"""
|
||||
non-direct imports (not in sys.path)
|
||||
|
||||
This is in the end just a fallback.
|
||||
"""
|
||||
a = Script(path='module.py', line=5).goto_definitions()
|
||||
assert a[0].name == 'int'
|
||||
|
||||
Reference in New Issue
Block a user