tests: bound generator subprocesses

This commit is contained in:
2026-08-14 02:50:58 +09:00
parent d7115c5eb5
commit 46c8ccd779
3 changed files with 17 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
IMPORT = ROOT / "map" / "libhangul2hanja"
GENERATE = ROOT / "map" / "mkhanja"
TIMEOUT = 10
def run(program, source=None, stdin=None, hostile=False):
@@ -29,6 +30,7 @@ def run(program, source=None, stdin=None, hostile=False):
encoding="utf-8",
env=env,
check=False,
timeout=TIMEOUT,
)