Issue #19599: Increase sleep period.

This commit is contained in:
Richard Oudkerk 2013-11-17 17:45:16 +00:00
parent 3f8376eaa2
commit 65162a7cca
1 changed files with 1 additions and 1 deletions

View File

@ -1140,7 +1140,7 @@ class _TestPool(BaseTestCase):
self.assertTimingAlmostEqual(get.elapsed, TIMEOUT1)
def test_async_timeout(self):
res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 0.2))
res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 1.0))
get = TimingWrapper(res.get)
self.assertRaises(multiprocessing.TimeoutError, get, timeout=TIMEOUT2)
self.assertTimingAlmostEqual(get.elapsed, TIMEOUT2)