Closed tcompa closed 2 months ago
spawn
, in multiprocessing, rather than fork
(see docs)spawn
doesn't play well with monkeypatch
(ref https://github.com/pytest-dev/pytest/issues/12045)Fix: always use fork
, in tests. Note that this is not available on windows, but we don't run tests on windows.
(thanks @mfranzon)
What a fun rabbithole, thanks for exploring & solving into this!
The following test sometimes fails on macos