[New-bugs-announce] [issue8405] Improve test_os._kill (failing on slow machines)

Brian Curtin 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.

----------
assignee: brian.curtin
components: Library (Lib), Windows
files: fix_test_os.diff
keywords: patch
messages: 103179
nosy: brian.curtin
priority: normal
severity: normal
stage: patch review
status: open
title: Improve test_os._kill (failing on slow machines)
type: behavior
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>
<http://bugs.python.org/issue8405>
_______________________________________


More information about the New-bugs-announce mailing list