[Python-checkins] r80065 - python/trunk/Lib/test/test_os.py

brian.curtin python-checkins at python.org
Wed Apr 14 04:24:24 CEST 2010


Author: brian.curtin
Date: Wed Apr 14 04:24:24 2010
New Revision: 80065

Log:
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.


Modified:
   python/trunk/Lib/test/test_os.py

Modified: python/trunk/Lib/test/test_os.py
==============================================================================
--- python/trunk/Lib/test/test_os.py	(original)
+++ python/trunk/Lib/test/test_os.py	Wed Apr 14 04:24:24 2010
@@ -679,6 +679,7 @@
         # 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)
 


More information about the Python-checkins mailing list