The environment selection had a bug

This commit is contained in:
Dave Halter
2017-12-24 03:47:35 +01:00
parent 085a9e0e33
commit fdd405f552

View File

@@ -85,10 +85,9 @@ def clean_jedi_cache(request):
@pytest.fixture(scope='session')
def environment(request):
if request is None:
version = request.config.option.env
if version is None:
version = os.environ.get('JEDI_TEST_ENVIRONMENT', str(py_version))
else:
version = request.config.option.env
if int(version) == py_version:
return get_default_environment()