mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
The environment selection had a bug
This commit is contained in:
@@ -85,10 +85,9 @@ def clean_jedi_cache(request):
|
|||||||
|
|
||||||
@pytest.fixture(scope='session')
|
@pytest.fixture(scope='session')
|
||||||
def environment(request):
|
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))
|
version = os.environ.get('JEDI_TEST_ENVIRONMENT', str(py_version))
|
||||||
else:
|
|
||||||
version = request.config.option.env
|
|
||||||
|
|
||||||
if int(version) == py_version:
|
if int(version) == py_version:
|
||||||
return get_default_environment()
|
return get_default_environment()
|
||||||
|
|||||||
Reference in New Issue
Block a user