diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-11 02:36:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 02:36:06 (GMT) |
commit | 790ecf6302e47b84da5d1c3b14dbdf070bce615b (patch) | |
tree | efed11c24800245ed13edd8d5ed165189575f118 | |
parent | 1556f426da3f2fb5842689999933c8038b65c034 (diff) | |
download | cpython-790ecf6302e47b84da5d1c3b14dbdf070bce615b.zip cpython-790ecf6302e47b84da5d1c3b14dbdf070bce615b.tar.gz cpython-790ecf6302e47b84da5d1c3b14dbdf070bce615b.tar.bz2 |
gh-110662: multiprocessing test_async_timeout() increase timeout (#110663)
Increase timeout from 1 second to 30 seconds, if not longer. The
important part is that apply_async() takes longer than TIMEOUT2.
-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 26649ed..0b333ca 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) |