From: Antoine Pitrou Date: Sun, 19 May 2013 13:55:40 +0000 (+0200) Subject: Try to make test more reliable (saw some sporadic failures on buildbots) X-Git-Tag: v3.4.0a1~686^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc49b2b88c14cb84cff2606734ec838caa6c8f00;p=thirdparty%2FPython%2Fcpython.git Try to make test more reliable (saw some sporadic failures on buildbots) --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index dd720fecf2f6..901d4dfbfbbf 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)