diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-10-11 03:06:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 03:06:58 (GMT) |
commit | be381b5df5957197d5d534560315e9adcd35aa24 (patch) | |
tree | 97c3691481e58323af872fd5d69cb5d48fdc231f /Lib/test/_test_multiprocessing.py | |
parent | 18458a527f36b6c00c1f41845eaac3ec4f26c69f (diff) | |
download | cpython-be381b5df5957197d5d534560315e9adcd35aa24.zip cpython-be381b5df5957197d5d534560315e9adcd35aa24.tar.gz cpython-be381b5df5957197d5d534560315e9adcd35aa24.tar.bz2 |
[3.12] gh-110662: multiprocessing test_async_timeout() increase timeout (GH-110663) (#110674)
gh-110662: multiprocessing test_async_timeout() increase timeout (GH-110663)
Increase timeout from 1 second to 30 seconds, if not longer. The
important part is that apply_async() takes longer than TIMEOUT2.
(cherry picked from commit 790ecf6302e47b84da5d1c3b14dbdf070bce615b)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib/test/_test_multiprocessing.py')
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 4c17088..83e9d16 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -2578,7 +2578,7 @@ class _TestPool(BaseTestCase): self.assertTimingAlmostEqual(get.elapsed, TIMEOUT1) def test_async_timeout(self): - res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 1.0)) + res = self.pool.apply_async(sqr, (6, TIMEOUT2 + support.SHORT_TIMEOUT)) get = TimingWrapper(res.get) self.assertRaises(multiprocessing.TimeoutError, get, timeout=TIMEOUT2) self.assertTimingAlmostEqual(get.elapsed, TIMEOUT2) |