1
0
forked from VimPlug/jedi

Fix issues with Python 3.7 tests

This commit is contained in:
Dave Halter
2019-06-15 22:26:34 +02:00
parent 4405c4f190
commit 38232fe133

View File

@@ -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']