summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-19 13:55:40 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-19 13:55:40 (GMT)
commitdc49b2b88c14cb84cff2606734ec838caa6c8f00 (patch)
tree4d24646b32aeb02d800e2a07e5dfab51fb738812 /Lib/test
parent916fc7bf286469f41e2d4b2bcd2d6c73314421a4 (diff)
downloadcpython-dc49b2b88c14cb84cff2606734ec838caa6c8f00.zip
cpython-dc49b2b88c14cb84cff2606734ec838caa6c8f00.tar.gz
cpython-dc49b2b88c14cb84cff2606734ec838caa6c8f00.tar.bz2
Try to make test more reliable (saw some sporadic failures on buildbots)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_subprocess.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index dd720fe..901d4df 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -948,10 +948,10 @@ class ProcessTestCase(BaseTestCase):
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)