summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authordustinlharrison <dustinlharrison@gmail.com>2019-09-26 14:07:26 -0700
committerCarlton Gibson <carlton@noumenal.es>2019-10-09 11:20:13 +0200
commitb0e92fb49d1c6f5c18e36f91c18d3ed981b47ae9 (patch)
tree21c569d943998dbb661b2174f5aadf02f9f90af7 /tox.ini
parent8b10357854f6e21ffcfea6761d2375338088720e (diff)
downloaddjango-b0e92fb49d1c6f5c18e36f91c18d3ed981b47ae9.tar.gz
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`.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini3
1 files changed, 2 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 5e2f54fd78..e0823dd9ac 100644
--- a/tox.ini
+++ b/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 =