]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Try to make test more reliable (saw some sporadic failures on buildbots)
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 19 May 2013 13:55:40 +0000 (15:55 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 19 May 2013 13:55:40 +0000 (15:55 +0200)
Lib/test/test_subprocess.py

index dd720fecf2f6fe242ce8daa909409d6403f10bf3..901d4dfbfbbf5787e0be79e7af2b71133f407382 100644 (file)
@@ -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)