From: Brian Curtin Date: Wed, 14 Apr 2010 02:24:24 +0000 (+0000) Subject: Add a small sleep to let a subprocess start before terminating it. X-Git-Tag: v2.7b2~284 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=235350a14234e0a3cb52472031c9855a766ef0ad;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index ef85be54d735..d13a2eba68e9 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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)