From 235350a14234e0a3cb52472031c9855a766ef0ad Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Wed, 14 Apr 2010 02:24:24 +0000 Subject: [PATCH] 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. --- Lib/test/test_os.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index ef85be54d7..d13a2eba68 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) -- 2.40.0