[Python-checkins] cpython (merge 3.3 -> default): Try to make test more reliable (saw some sporadic failures on buildbots)
antoine.pitrou
python-checkins at python.org
Sun May 19 15:56:08 CEST 2013
http://hg.python.org/cpython/rev/79bf4e7e4004
changeset: 83842:79bf4e7e4004
parent: 83839:13d817cb72e7
parent: 83841:256b8dc71046
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sun May 19 15:55:59 2013 +0200
summary:
Try to make test more reliable (saw some sporadic failures on buildbots)
files:
Lib/test/test_subprocess.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
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
@@ -982,10 +982,10 @@
def test_wait_timeout(self):
p = subprocess.Popen([sys.executable,
- "-c", "import time; time.sleep(0.1)"])
+ "-c", "import time; time.sleep(0.3)"])
with self.assertRaises(subprocess.TimeoutExpired) as c:
- p.wait(timeout=0.01)
- self.assertIn("0.01", str(c.exception)) # For coverage of __str__.
+ p.wait(timeout=0.0001)
+ self.assertIn("0.0001", str(c.exception)) # For coverage of __str__.
# Some heavily loaded buildbots (sparc Debian 3.x) require this much
# time to start.
self.assertEqual(p.wait(timeout=3), 0)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list