Closed laike9m closed 4 years ago
Ping?
Confirm the issue also with pytest-parallel==0.0.10
but exclusively on Darwin
. It is still safe on linux-based OS
I have the same problem on this platform: platform darwin -- Python 3.8.1, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
From https://docs.python.org/3/library/multiprocessing.html:
Changed in version 3.8: On macOS, the spawn start method is now the default. The fork start method should be considered unsafe as it can lead to crashes of the subprocess. See bpo-33725.
So you could set it manually to "forkserver" I guess.
import multiprocessing as mp; mp.set_start_method("forkserver")
Apart from that pytest-xdist might be a good alternative for executing tests in parallel.
To reproduce, first have a Python 3.8 enviroment, then
will give