Fixed #30806 -- Prevented tox tests hanging on macOS.
MacOS users may need to set OBJC_DISABLE_INITIALIZE_FORK_SAFETY=TRUE (#27086) to prevent tests from hanging. If set, also pass the environment variable to `tox`.
This commit is contained in:
parent
8b10357854
commit
b0e92fb49d
3
tox.ini
3
tox.ini
|
@ -17,7 +17,8 @@ basepython = python3
|
|||
|
||||
[testenv]
|
||||
usedevelop = true
|
||||
passenv = DJANGO_SETTINGS_MODULE PYTHONPATH HOME DISPLAY
|
||||
# OBJC_DISABLE_INITIALIZE_FORK_SAFETY fixes hung tests for MacOS users. (#30806)
|
||||
passenv = DJANGO_SETTINGS_MODULE PYTHONPATH HOME DISPLAY OBJC_DISABLE_INITIALIZE_FORK_SAFETY
|
||||
setenv =
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
deps =
|
||||
|
|
Loading…
Reference in New Issue