forked from VimPlug/jedi
Now it's actually possible to specify a pytest environment for the same Python version
This commit is contained in:
@@ -6,8 +6,7 @@ from functools import partial
|
||||
import pytest
|
||||
|
||||
import jedi
|
||||
from jedi.api.environment import get_default_environment, \
|
||||
get_system_environment, InterpreterEnvironment
|
||||
from jedi.api.environment import get_system_environment, InterpreterEnvironment
|
||||
from jedi._compatibility import py_version
|
||||
|
||||
collect_ignore = [
|
||||
@@ -98,9 +97,6 @@ def environment(request):
|
||||
if version is None:
|
||||
version = os.environ.get('JEDI_TEST_ENVIRONMENT', str(py_version))
|
||||
|
||||
if int(version) == py_version:
|
||||
return get_default_environment()
|
||||
|
||||
return get_system_environment(version[0] + '.' + version[1:])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user