mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
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.
This commit is contained in:
1 parent
af8213509a
commit
c09e09007b
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user