mirror of
https://github.com/python/cpython.git
synced 2025-10-14 10:53:40 +00:00
Merged revisions 87233 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87233 | gregory.p.smith | 2010-12-14 06:38:00 -0800 (Tue, 14 Dec 2010) | 4 lines Issue #1731717: Fixed the problem where subprocess.wait() could cause an OSError exception when The OS had been told to ignore SIGCLD in our process or otherwise not wait for exiting child processes. ........
This commit is contained in:
parent
6b2af997d4
commit
b740e76af0
4 changed files with 35 additions and 2 deletions
|
@ -793,6 +793,17 @@ class ProcessTestCase(BaseTestCase):
|
|||
stdout = stdout.rstrip(b'\n\r')
|
||||
self.assertEqual(stdout, value_repr)
|
||||
|
||||
def test_wait_when_sigchild_ignored(self):
|
||||
# NOTE: sigchild_ignore.py may not be an effective test on all OSes.
|
||||
sigchild_ignore = support.findfile("sigchild_ignore.py",
|
||||
subdir="subprocessdata")
|
||||
p = subprocess.Popen([sys.executable, sigchild_ignore],
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
stdout, stderr = p.communicate()
|
||||
self.assertEqual(0, p.returncode, "sigchild_ignore.py exited"
|
||||
" non-zero with this error:\n%s" % stderr)
|
||||
|
||||
|
||||
#
|
||||
# Windows tests
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue