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:
parent
f03641ace3
commit
235350a142
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue