New submission from Brian Curtin <cur...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8405>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to