You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DeprecationWarning on Python 3.12 from os.fork() #105
On POSIX platforms, os.fork() can now raise a DeprecationWarning when it can detect being called from a multithreaded process. There has always been a fundamental incompatibility with the POSIX platform when doing so. Even if such code appeared to work. We added the warning to raise awareness as issues encountered by code doing this are becoming more frequent. See the os.fork() documentation for more details along with this discussion on fork being incompatible with threads for why we’re now surfacing this longstanding platform compatibility problem to developers.
=============================== warnings summary ===============================
test/runner/test_aiorunner.py::test_runner_check_return_success
test/runner/test_aiorunner.py::test_runner_infretis_mode
test/runner/test_aiorunner.py::test_runner_infretis_mode
test/runner/test_aiorunner.py::test_runner_task_error
/opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=1876) is multi-threaded, use of fork() may lead to deadlocks in the child.
self.pid = os.fork()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================= 52 passed, 6 deselected, 4 warnings in 4.48s =================
Activity
dz24 commentedon Sep 6, 2024
@esclapez
dz24 commentedon Nov 18, 2025
Should be solved in PR #190.