bpo-37531: regrtest ignores output on timeout (GH-16659)

bpo-37531, bpo-38207: On timeout, regrtest no longer attempts to call
`popen.communicate() again: it can hang until all child processes
using stdout and stderr pipes completes. Kill the worker process and
ignores its output.

Reenable test_regrtest.test_multiprocessing_timeout().

bpo-37531: Change also the faulthandler timeout of the main process
from 1 minute to 5 minutes, for Python slowest buildbots.
This commit is contained in:
Victor Stinner 2019-10-08 18:45:43 +02:00 committed by GitHub
parent e53c5800df
commit 0ec618af98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 28 deletions

View file

@ -1153,7 +1153,6 @@ class ArgsTestCase(BaseTestCase):
env_changed=[testname],
fail_env_changed=True)
@unittest.skipIf(True, 'bpo-37531, bpo-38207: test hangs randomly')
def test_multiprocessing_timeout(self):
code = textwrap.dedent(r"""
import time