[New-bugs-announce] [issue8405] Improve test_os._kill (failing on slow machines)
report at bugs.python.org
Thu Apr 15 04:42:02 CEST 2010
New submission from Brian Curtin <curtin at acm.org>:
test_os._kill is used by test_kill_sigterm and test_kill_int and is failing on a slow Windows buildbot due to timing issues between the process starting and the signal being sent. I've checked in a few small time.sleep hacks in the meantime to see if that would help the bot, but I'd like to get a solid fix in there.
The attached patch adds a loop to the test function to see that even if the subprocess doesn't respond right away, it will have a few chances to respond and run the test. If the expected message isn't piped from the subprocess after 5 retries, the test fails.
components: Library (Lib), Windows
stage: patch review
title: Improve test_os._kill (failing on slow machines)
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file16928/fix_test_os.diff
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce