Staging
v0.8.1
https://github.com/python/cpython
Revision e13180bc4c40a9ac300590c62a6efbcaf10ae6df authored by Miss Islington (bot) on 18 July 2018, 17:02:06 UTC, committed by Victor Stinner on 18 July 2018, 17:02:06 UTC
test_signal.test_socket(): On Windows, sometimes even if the C signal handler
succeed to write the signal number into the write end of the socketpair, the
test fails with a BlockingIOError on the non-blocking read.recv(1) because the
read end of the socketpair didn't receive the byte yet.

Fix the race condition on Windows by setting the read end as blocking.
(cherry picked from commit 99bb6df66a42625367c4f38e6802c8bb527baf4a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent c774f76
History
Tip revision: e13180bc4c40a9ac300590c62a6efbcaf10ae6df authored by Miss Islington (bot) on 18 July 2018, 17:02:06 UTC
bpo-34130: Fix test_signal.test_socket() (GH-8326) (GH-8330)
Tip revision: e13180b
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-- 1.6 KB
.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.9 KB
README.rst -rw-r--r-- 9.5 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.2 KB
config.sub -rwxr-xr-x 35.7 KB
configure -rwxr-xr-x 481.2 KB
configure.ac -rw-r--r-- 160.5 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 41.1 KB
setup.py -rw-r--r-- 102.1 KB

README.rst

back to top