Add a small sleep to let a subprocess start before terminating it.

David Bolen's buildbot isn't know for it's speed, and it seems that we
may have been trying to kill the subprocess before it was fully
initialized. I ran with this change on the bot itself and it seemed to work.
This commit is contained in:
Brian Curtin 2010-04-14 02:24:24 +00:00
parent f03641ace3
commit 235350a142
1 changed files with 1 additions and 0 deletions

View File

@ -679,6 +679,7 @@ class Win32KillTests(unittest.TestCase):
# Send a subprocess a signal (or in some cases, just an int to be
# the return value)
proc = subprocess.Popen(*args)
time.sleep(0.5)
os.kill(proc.pid, sig)
self.assertEqual(proc.wait(), sig)