tests: bound generator subprocesses
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user