https://github.com/python/cpython
Revision 61bd4d2e6319a3c5c3b9ce5f807b44a45cc1d4a1 authored by Anselm Kruis on 23 February 2018, 16:27:28 UTC, committed by Gregory P. Smith on 23 February 2018, 16:27:28 UTC
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 33dddac00ba8d9b72cf21b8698504077eb3c23ad)

Co-authored-by: Anselm Kruis <a.kruis@science-computing.de>
1 parent b852d8c
History
Tip revision: 61bd4d2e6319a3c5c3b9ce5f807b44a45cc1d4a1 authored by Anselm Kruis on 23 February 2018, 16:27:28 UTC
[2.7] bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066) (GH-5825)
Tip revision: 61bd4d2
File Mode Size
.github
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.bzrignore -rw-r--r-- 552 bytes
.gitattributes -rw-r--r-- 809 bytes
.gitignore -rw-r--r-- 1.2 KB
.travis.yml -rw-r--r-- 3.6 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 48.1 KB
README -rw-r--r-- 54.4 KB
aclocal.m4 -rw-r--r-- 13.0 KB
config.guess -rwxr-xr-x 43.2 KB
config.sub -rwxr-xr-x 35.7 KB
configure -rwxr-xr-x 437.6 KB
configure.ac -rw-r--r-- 140.6 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 35.1 KB
setup.py -rw-r--r-- 98.0 KB

README

back to top