Staging
v0.5.1
https://github.com/python/cpython
Revision 95681c7a7ddd436ba7d6c10d1202c33dd6bd648b authored by Victor Stinner on 01 June 2018, 13:23:10 UTC, committed by GitHub on 01 June 2018, 13:23:10 UTC
* bpo-31479: Always reset the signal alarm in tests

Use "try: ... finally: signal.signal(0)" pattern to make sure that
tests don't "leak" a pending fatal signal alarm.

* Move two more alarm() calls into the try block

Fix also typo: replace signal.signal(0) with signal.alarm(0)

* Move another signal.alarm() into the try block

(cherry picked from commit 9abee722d448c1c00c7d4e11ce242ec7b13e5c49)
1 parent 8f7bd30
History
Tip revision: 95681c7a7ddd436ba7d6c10d1202c33dd6bd648b authored by Victor Stinner on 01 June 2018, 13:23:10 UTC
bpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7312)
Tip revision: 95681c7
File Mode Size
.github
.vsts
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
.bzrignore -rw-r--r-- 582 bytes
.gitattributes -rw-r--r-- 798 bytes
.gitignore -rw-r--r-- 1.4 KB
.hgignore -rw-r--r-- 1.3 KB
.travis.yml -rw-r--r-- 4.9 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 59.6 KB
README.rst -rw-r--r-- 9.2 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 479.7 KB
configure.ac -rw-r--r-- 159.9 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 41.2 KB
setup.py -rw-r--r-- 102.1 KB

README.rst

back to top