[New-bugs-announce] [issue31034] test_subprocess_send_signal() of test_asyncio hangs if SIGHUP is ignored

STINNER Victor report at bugs.python.org
Tue Jul 25 11:11:10 EDT 2017


New submission from STINNER Victor:

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.

----------
components: Tests, asyncio
messages: 299094
nosy: haypo, yselivanov
priority: normal
severity: normal
status: open
title: test_subprocess_send_signal() of test_asyncio hangs if SIGHUP is ignored
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31034>
_______________________________________


More information about the New-bugs-announce mailing list