mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-19 23:09:43 +08:00
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.
|
# anymore, because its end-of-life soon.
|
||||||
pytest.skip()
|
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'))
|
project = Project(os.path.join(root_dir, 'test', 'completion', 'stub_folder'))
|
||||||
s = Script(code, _project=project)
|
s = Script(code, _project=project)
|
||||||
prefer_stubs = kwargs['prefer_stubs']
|
prefer_stubs = kwargs['prefer_stubs']
|
||||||
|
|||||||
Reference in New Issue
Block a user