mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-15 13:22:35 +08:00
The environment selection had a bug
This commit is contained in:
1 parent
085a9e0e33
commit
fdd405f552
1 file changed
+2
-3
+2
-3
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user