Skip to content

Commit

Permalink
Change multiprocessing start method
Browse files Browse the repository at this point in the history
  • Loading branch information
tcalmant committed Aug 21, 2024
1 parent 45d73d6 commit fc9ec88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/rsa/test_etcd3_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@

try:
# Try to import modules
import multiprocessing
from multiprocessing import Process, Queue

# IronPython fails when creating a queue
Queue()

# Trick to avoid pytest hanging
multiprocessing.set_start_method("spawn", force=True)
except ImportError:
# Some interpreters don't have support for multiprocessing
raise unittest.SkipTest("Interpreter doesn't support multiprocessing")
Expand Down

0 comments on commit fc9ec88

Please sign in to comment.