From 083a2cf741fb200e598575b92d33090af67c0b58 Mon Sep 17 00:00:00 2001 From: kba Date: Wed, 17 Jul 2024 13:48:19 +0200 Subject: [PATCH] restrict multiprocessing.set_start_method call to OSX --- tests/cli/test_process.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/cli/test_process.py b/tests/cli/test_process.py index 32fc02fed0..d123e857bd 100644 --- a/tests/cli/test_process.py +++ b/tests/cli/test_process.py @@ -4,7 +4,9 @@ from contextlib import ExitStack from multiprocessing import Process, set_start_method # necessary for macos -set_start_method("fork") +from sys import platform +if platform == "darwin": + set_start_method("fork") from ocrd import Resolver, Workspace, OcrdMetsServer from ocrd.cli import process_cli