Modules that are not importable shouldn't cause Jedi to stop working (just issue a warning). Fixes #468, #71.
This commit is contained in:
1 parent
910f2e6486
commit
eb146adcc1
2 files changed
+11
No files matched your search
@@ -51,3 +51,9 @@ def test_flask_ext(script, name):
|
||||
assert name in [c.name for c in jedi.Script(script).completions()]
|
||||
finally:
|
||||
sys.path.remove(path)
|
||||
|
||||
|
||||
@cwd_at('test/test_evaluate/')
|
||||
def test_not_importable_file():
|
||||
src = 'import not_importable_file as x; x.'
|
||||
assert not jedi.Script(src, path='example.py').completions()
|
||||
Reference in new issue
Block a user