mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Add test for python_venv language
This commit is contained in:
parent
e8954e2bf3
commit
b5af5a5b27
12 changed files with 55 additions and 15 deletions
|
|
@ -16,7 +16,6 @@ from pre_commit.xargs import xargs
|
|||
|
||||
|
||||
ENVIRONMENT_DIR = 'py_env'
|
||||
HEALTH_MODS = ('datetime', 'io', 'os', 'ssl', 'weakref')
|
||||
|
||||
|
||||
def bin_dir(venv):
|
||||
|
|
@ -120,7 +119,8 @@ def py_interface(_dir, _make_venv):
|
|||
def healthy(prefix, language_version):
|
||||
with in_env(prefix, language_version):
|
||||
retcode, _, _ = cmd_output(
|
||||
'python', '-c', 'import {}'.format(','.join(HEALTH_MODS)),
|
||||
'python', '-c',
|
||||
'import ctypes, datetime, io, os, ssl, weakref',
|
||||
retcode=None,
|
||||
)
|
||||
return retcode == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue