mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Django is not supported for Python 2
This commit is contained in:
@@ -47,7 +47,7 @@ def test_completion(case, monkeypatch, environment, has_typing, has_django):
|
|||||||
_CONTAINS_TYPING = ('pep0484_typing', 'pep0484_comments', 'pep0526_variables')
|
_CONTAINS_TYPING = ('pep0484_typing', 'pep0484_comments', 'pep0526_variables')
|
||||||
if not has_typing and any(x in case.path for x in _CONTAINS_TYPING):
|
if not has_typing and any(x in case.path for x in _CONTAINS_TYPING):
|
||||||
pytest.skip('Needs the typing module installed to run this test.')
|
pytest.skip('Needs the typing module installed to run this test.')
|
||||||
if not has_django and case.path.endswith('django.py'):
|
if (not has_django or environment.version_info.major == 2) and case.path.endswith('django.py'):
|
||||||
pytest.skip('Needs django to be installed to run this test.')
|
pytest.skip('Needs django to be installed to run this test.')
|
||||||
repo_root = helpers.root_dir
|
repo_root = helpers.root_dir
|
||||||
monkeypatch.chdir(os.path.join(repo_root, 'jedi'))
|
monkeypatch.chdir(os.path.join(repo_root, 'jedi'))
|
||||||
|
|||||||
Reference in New Issue
Block a user