[Python-checkins] cpython: Bump up the subprocess timeouts even more. :(

reid.kleckner python-checkins at python.org
Wed Mar 16 22:10:03 CET 2011


http://hg.python.org/cpython/rev/2e4879d44604
changeset: 68619:2e4879d44604
user: Reid Kleckner <reid at kleckner.net>
date: Wed Mar 16 17:08:21 2011 -0400
summary:
 Bump up the subprocess timeouts even more. :(
files:
 Lib/test/test_subprocess.py
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -130,7 +130,9 @@
 "import sys; sys.stdout.write('BDFL')\n"
 "sys.stdout.flush()\n"
 "while True: pass"],
- timeout=1.5)
+ # Some heavily loaded buildbots (sparc Debian 3.x) require
+ # this much time to start and print.
+ timeout=3)
 self.fail("Expected TimeoutExpired.")
 self.assertEqual(c.exception.output, b'BDFL')
 
@@ -647,15 +649,15 @@
 # Subsequent invocations should just return the returncode
 self.assertEqual(p.wait(), 0)
 
-
 def test_wait_timeout(self):
 p = subprocess.Popen([sys.executable,
 "-c", "import time; time.sleep(0.1)"])
 with self.assertRaises(subprocess.TimeoutExpired) as c:
 p.wait(timeout=0.01)
 self.assertIn("0.01", str(c.exception)) # For coverage of __str__.
- self.assertEqual(p.wait(timeout=2), 0)
-
+ # Some heavily loaded buildbots (sparc Debian 3.x) require this much
+ # time to start.
+ self.assertEqual(p.wait(timeout=3), 0)
 
 def test_invalid_bufsize(self):
 # an invalid type of the bufsize argument should raise
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /