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:
dustinlharrison 2019-09-26 14:07:26 -07:00 committed by Carlton Gibson
parent 8b10357854
commit b0e92fb49d
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ basepython = python3
[testenv] [testenv]
usedevelop = true 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 = setenv =
PYTHONDONTWRITEBYTECODE=1 PYTHONDONTWRITEBYTECODE=1
deps = deps =