Find Python environments on Windows using the registry

This commit is contained in:
micbou
2018-03-25 23:00:57 +02:00
parent 0fd8e728f5
commit b3b6b798ff
4 changed files with 93 additions and 44 deletions

View File

@@ -87,10 +87,6 @@ def clean_jedi_cache(request):
@pytest.fixture(scope='session')
def environment(request):
python = os.environ.get('JEDI_TEST_ENVIRONMENT_EXECUTABLE')
if python:
return get_python_environment(python)
version = request.config.option.env
if version is None:
version = os.environ.get('JEDI_TEST_ENVIRONMENT', str(py_version))