Author vstinner
Recipients vstinner, yselivanov
Date 2017-07-25.15:11:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500995470.63.0.711892851496.issue31034@psf.upfronthosting.co.za>
In-reply-to
Content
A colleague reported me that the Python test suite hangs on running test_subprocess_send_signal() of test_asyncio. After analysing the issue, it seems like the test hangs becaues the RPM package builder ignores SIGHUP using something like:


def daemonize():
    [...]
    signal.signal(signal.SIGHUP, signal.SIG_IGN)
    [...]

While we should see if Koji (software used to build packages) can be patched to restore the default signal handler for SIGHUP, I would like to enhance test_asyncio to not depend on the current SIGHUP signal handler.

I modified Lib/site.py to add "import signal; signal.signal(signal.SIGHUP, signal.SIG_IGN)": on 406 test files, only test_asyncio hangs.

Attached PR fixes test_asyncio.
History
Date User Action Args
2017-07-25 15:11:10vstinnersetrecipients: + vstinner, yselivanov
2017-07-25 15:11:10vstinnersetmessageid: <1500995470.63.0.711892851496.issue31034@psf.upfronthosting.co.za>
2017-07-25 15:11:10vstinnerlinkissue31034 messages
2017-07-25 15:11:10vstinnercreate