Now it's actually possible to specify a pytest environment for the same Python version

This commit is contained in:
Dave Halter
2018-08-04 02:00:13 +02:00
parent 71572e63cd
commit b91203820c
2 changed files with 2 additions and 5 deletions

View File

@@ -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:])

View File

@@ -147,6 +147,7 @@ class CompiledSubprocess(object):
@property
@memoize_method
def _process(self):
debug.dbg('Start environment subprocess %s', self._executable)
parso_path = sys.modules['parso'].__file__
args = (
self._executable,