]> granicus.if.org Git - python/commitdiff
Add a small sleep to let a subprocess start before terminating it.
authorBrian Curtin <brian.curtin@gmail.com>
Wed, 14 Apr 2010 02:24:24 +0000 (02:24 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Wed, 14 Apr 2010 02:24:24 +0000 (02:24 +0000)
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

index ef85be54d735186b92e3a8c0cf1666e4784443af..d13a2eba68e9adc89f9dcd27328342d3cb2d59fc 100644 (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)