Add JEDI_TEST_ENVIRONMENT_EXECUTABLE for AppVeyor

This commit is contained in:
micbou
2018-03-24 21:47:32 +01:00
committed by Dave Halter
parent e8b301ebf9
commit bf57fa16fc
6 changed files with 97 additions and 50 deletions

View File

@@ -24,10 +24,23 @@ def test_find_python_environments():
assert parser_version[:2] == env.version_info[:2]
def test_version():
env = Environment('some path', sys.executable)
@pytest.mark.skipif("os.name == 'nt'")
@pytest.mark.parametrize(
'version',
['2.7', '3.3', '3.4', '3.5', '3.6', '3.7']
)
def test_versions(version):
executable = 'python' + version
try:
env = Environment('some path', executable)
except InvalidPythonEnvironment:
if int(version.replace('.', '')) == py_version:
# At least the current version has to work
raise
return
sys_path = env.get_sys_path()
assert any(sys.prefix in p for p in sys_path)
assert any(executable in p for p in sys_path)
def test_load_module(evaluator):