Explorar o código

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`.
dustinlharrison %!s(int64=5) %!d(string=hai) anos
pai
achega
b0e92fb49d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      tox.ini

+ 2 - 1
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 =