Skip to content

Commit

Permalink
restrict multiprocessing.set_start_method call to OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Jul 17, 2024
1 parent 92b217e commit 083a2cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/cli/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 083a2cf

Please sign in to comment.