summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-04-14 02:24:24 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-04-14 02:24:24 (GMT)
commit235350a14234e0a3cb52472031c9855a766ef0ad (patch)
tree5c1ae35e290cf680aebb706d067cb9a2633c1d8a
parentf03641ace3da029e8b6927d50dde55e7ac2fabfe (diff)
downloadcpython-235350a14234e0a3cb52472031c9855a766ef0ad.zip
cpython-235350a14234e0a3cb52472031c9855a766ef0ad.tar.gz
cpython-235350a14234e0a3cb52472031c9855a766ef0ad.tar.bz2
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.
-rw-r--r--Lib/test/test_os.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index ef85be5..d13a2eb 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)