···3 "--numprocesses=$NIX_BUILD_CORES"
4 "--forked"
5 )
000000006}
78# the flags should be added before pytestCheckHook runs so
···3 "--numprocesses=$NIX_BUILD_CORES"
4 "--forked"
5 )
6+7+ # Using --forked on darwin leads to crashes when fork safety is
8+ # enabled. This often happens when urllib tries to request proxy
9+ # settings on MacOS through `urllib.request.getproxies()`
10+ # - https://github.com/python/cpython/issues/77906
11+ if [[ "$OSTYPE" == "darwin"* ]]; then
12+ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
13+ fi
14}
1516# the flags should be added before pytestCheckHook runs so