1
0
mirror of https://github.com/django/django.git synced 2025-03-13 10:50:55 +00:00

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

View File

@ -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 =