mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-02 09:37:30 +00:00
Change multiprocessing start method to spawn for tests
This commit is contained in:
@@ -4,10 +4,16 @@ import sys
|
||||
import logging
|
||||
import traceback
|
||||
import pytest
|
||||
from multiprocessing import Process, Queue
|
||||
from multiprocessing import Process, Queue, set_start_method
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
try:
|
||||
set_start_method('spawn')
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def run_test(main_func, thread_func=None, param=None, no_destroy=False):
|
||||
__tracebackhide__ = True
|
||||
queue = Queue()
|
||||
|
||||
Reference in New Issue
Block a user