diff options
author | Devaev Maxim <[email protected]> | 2020-12-02 15:07:08 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-12-02 15:07:08 +0300 |
commit | 5bc868662a7ef2b8959a04e6678c512797ebd7be (patch) | |
tree | 102f25b53359e58a8cd42c78a5ea7f57c91f294f /testenv | |
parent | 2b064a3bee87a13930e1212b583278ff2a8117db (diff) |
stop signals propagation in 3.9
Diffstat (limited to 'testenv')
-rw-r--r-- | testenv/tests/plugins/auth/test_pam.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/testenv/tests/plugins/auth/test_pam.py b/testenv/tests/plugins/auth/test_pam.py index a2cc32fa..49be05a2 100644 --- a/testenv/tests/plugins/auth/test_pam.py +++ b/testenv/tests/plugins/auth/test_pam.py @@ -20,6 +20,7 @@ # ========================================================================== # +import os import asyncio import pwd @@ -29,8 +30,6 @@ from typing import Optional import pytest -from kvmd import aioproc - from . import get_configured_auth_service @@ -45,7 +44,7 @@ async def _run_process(cmd: str, input: Optional[str]=None) -> None: # pylint: proc = await asyncio.create_subprocess_exec( *cmd.split(" "), stdin=(asyncio.subprocess.PIPE if input is not None else None), - preexec_fn=aioproc.ignore_sigint, + preexec_fn=os.setpgrp, ) await proc.communicate(input.encode() if input is not None else None) assert proc.returncode == 0 |