Fix test_imports tests, now zip imports work again
This commit is contained in:
1 parent
b6612a83c3
commit
a437c2cb02
7 files changed
+156
-116
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import os
|
||||
import re
|
||||
|
||||
from parso.file_io import FileIO
|
||||
from jedi._compatibility import FileNotFoundError
|
||||
from jedi.parser_utils import get_cached_code_lines
|
||||
from jedi.evaluate.cache import evaluator_function_cache
|
||||
@@ -64,7 +65,7 @@ def _get_typeshed_directories(version_info):
|
||||
|
||||
@evaluator_function_cache()
|
||||
def _load_stub(evaluator, path):
|
||||
return evaluator.parse(path=path, cache=True, use_latest_grammar=True)
|
||||
return evaluator.parse(file_io=FileIO(path), cache=True, use_latest_grammar=True)
|
||||
|
||||
|
||||
def _merge_modules(context_set, stub_context):
|
||||
|
||||
Reference in new issue
Block a user