◐ Shell
clean mode source ↗

[3.7] bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066) by miss-islington · Pull Request #5824 · python/cpython

Make test.support.temp_cwd() fork-safe. The context manager test.support.temp_cwd() no longer removes the temporary directory when executing in a process other than the parent it entered from.
If a forked child exits the context manager it won't do the cleanup.
(cherry picked from commit 33dddac)

Co-authored-by: Anselm Kruis a.kruis@science-computing.de

https://bugs.python.org/issue30028