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
VC6
VS7.1
VS8.0
VS9.0
bdist_wininst
os2emx
os2vacpp
WinMain.c -rw-r--r-- 447 bytes
_msi.c -rw-r--r-- 31.6 KB
_subprocess.c -rw-r--r-- 19.8 KB
_winreg.c -rw-r--r-- 60.6 KB
config.c -rw-r--r-- 4.5 KB
dl_nt.c -rw-r--r-- 4.2 KB
dllbase_nt.txt -rw-r--r-- 3.5 KB
empty.c -rw-r--r-- 137 bytes
errmap.h -rw-r--r-- 2.1 KB
errmap.mak -rw-r--r-- 95 bytes
frozen_dllmain.c -rw-r--r-- 3.9 KB
generrmap.c -rw-r--r-- 503 bytes
getpathp.c -rw-r--r-- 21.0 KB
icons.mak -rw-r--r-- 213 bytes
icons.rc -rw-r--r-- 59 bytes
import_nt.c -rw-r--r-- 2.7 KB
make_versioninfo.c -rw-r--r-- 1.2 KB
msvcrtmodule.c -rw-r--r-- 11.0 KB
py.ico -rw-r--r-- 19.3 KB
pyc.ico -rw-r--r-- 19.3 KB
pycon.ico -rw-r--r-- 19.3 KB
pyconfig.h -rw-r--r-- 20.8 KB
python.mk -rw-r--r-- 229 bytes
python_exe.rc -rw-r--r-- 49 bytes
python_nt.rc -rw-r--r-- 1.8 KB
readme.txt -rw-r--r-- 4.1 KB
testpy.py -rw-r--r-- 834 bytes
w9xpopen.c -rw-r--r-- 3.6 KB
winsound.c -rw-r--r-- 5.3 KB

readme.txt

back to top