From 967d669d40b166e2c5513703dbc9877528968d20 Mon Sep 17 00:00:00 2001 From: Vinyzu <50874994+Vinyzu@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:38:42 +0200 Subject: [PATCH] Fix MYPY on Windows --- tests/conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index df37b9e..ad9665a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -21,6 +21,12 @@ from .server import Server, test_server from .utils import find_chrome_executable, random_port +# MYPY Shenanigans +if os.name != "posix": + os.killpg = lambda pid: pid + os.getpgid = lambda pid: pid + signal.SIGKILL = 9 + flags: List[str] = [ "--incognito", "--accept-lang=en-US",