forked from VimPlug/jedi
Fix issues with Python 3.7 tests
This commit is contained in:
@@ -47,6 +47,11 @@ def test_infer_and_goto(Script, code, full_name, has_stub, has_python, way,
|
||||
# anymore, because its end-of-life soon.
|
||||
pytest.skip()
|
||||
|
||||
if type_ == 'infer' and full_name == 'typing.Sequence' and environment.version_info >= (3, 7):
|
||||
# In Python 3.7+ there's not really a sequence definition, there's just
|
||||
# a name that leads nowhere.
|
||||
has_python = False
|
||||
|
||||
project = Project(os.path.join(root_dir, 'test', 'completion', 'stub_folder'))
|
||||
s = Script(code, _project=project)
|
||||
prefer_stubs = kwargs['prefer_stubs']
|
||||
|
||||
Reference in New Issue
Block a user