Also check the ssl module for virtualenv health.

This commit is contained in:
Anthony Sottile
2017-09-14 10:09:25 -07:00
committed by GitHub
parent 773a817f7f
commit b907c02f05

View File

@@ -86,7 +86,8 @@ def get_default_version():
def healthy(repo_cmd_runner, language_version):
with in_env(repo_cmd_runner, language_version):
retcode, _, _ = cmd_output(
'python', '-c', 'import datetime, io, os, weakref', retcode=None,
'python', '-c', 'import datetime, io, os, ssl, weakref',
retcode=None,
)
return retcode == 0