From c09e09007ba7963a81fa9d23eabbbfecbc2b80f1 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Fri, 6 Feb 2026 15:09:37 +0100 Subject: [PATCH] Python: Use spawn instead of fork for multiprocessing in tests Set multiprocessing start method to "spawn" in conftest.py to avoid fork() deprecation warnings when gRPC threads are present. --- GrpcInterface/Python/rips/tests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GrpcInterface/Python/rips/tests/conftest.py b/GrpcInterface/Python/rips/tests/conftest.py index 61c50cd563..30296f75bf 100644 --- a/GrpcInterface/Python/rips/tests/conftest.py +++ b/GrpcInterface/Python/rips/tests/conftest.py @@ -1,6 +1,10 @@ import pytest import sys import os +import multiprocessing + +# Use spawn instead of fork to avoid deadlocks with gRPC threads +multiprocessing.set_start_method("spawn", force=True) sys.path.insert(1, os.path.join(sys.path[0], "../../")) import rips