Merge pull request #619 from pre-commit/asottile-patch-1

Also check the ssl module for virtualenv health.
This commit is contained in:
Anthony Sottile 2017-09-17 15:26:54 -07:00 committed by GitHub
commit 3a5a8dc76a

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