diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-19 13:55:59 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-19 13:55:59 (GMT) |
commit | 5b6616dee302270f72379a3493de137a5994ee60 (patch) | |
tree | 8526b9d03078c40d1ff7e1210490061667855682 /Lib/test/test_subprocess.py | |
parent | c52d113e282630a5d44d80a8f02ce743b57aeb81 (diff) | |
parent | dc49b2b88c14cb84cff2606734ec838caa6c8f00 (diff) | |
download | cpython-5b6616dee302270f72379a3493de137a5994ee60.zip cpython-5b6616dee302270f72379a3493de137a5994ee60.tar.gz cpython-5b6616dee302270f72379a3493de137a5994ee60.tar.bz2 |
Try to make test more reliable (saw some sporadic failures on buildbots)
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | 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 index 6d8afaf..50923e8 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -982,10 +982,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) |