From e642dd4b356ba18691648729fb7f6b7428e56bfa Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 6 Dec 2021 13:15:45 -0800 Subject: [PATCH] Fix kill signal on Windows --- tests/test_concurrency.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 57185a07..8d7675bf 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -4,6 +4,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +import os import pytest @@ -12,7 +13,8 @@ from ocrmypdf import ExitCode from .conftest import run_ocrmypdf_api -def test_child_page4(resources, no_outpdf): +@pytest.mark.skipif(os.name == 'nt', reason="Windows doesn't have SIGKILL") +def test_simulate_oom_killer(resources, no_outpdf): exitcode = run_ocrmypdf_api( resources / 'multipage.pdf', no_outpdf,