Remove the has_typing fixture

This commit is contained in:
Dave Halter
2020-07-02 00:26:28 +02:00
parent 7e295d05a1
commit 9d5acf3c53
2 changed files with 1 additions and 15 deletions

View File

@@ -132,17 +132,6 @@ def goto_or_help_or_infer(request, Script):
return lambda code, *args, **kwargs: getattr(Script(code), request.param)(*args, **kwargs)
@pytest.fixture(scope='session')
def has_typing(environment):
if environment.version_info >= (3, 5, 0):
# This if is just needed to avoid that tests ever skip way more than
# they should for all Python versions.
return True
script = jedi.Script('import typing', environment=environment)
return bool(script.infer())
@pytest.fixture(scope='session')
def has_django(environment):
script = jedi.Script('import django', environment=environment)