summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-11 02:36:06 (GMT)
committerGitHub <noreply@github.com>2023-10-11 02:36:06 (GMT)
commit790ecf6302e47b84da5d1c3b14dbdf070bce615b (patch)
treeefed11c24800245ed13edd8d5ed165189575f118
parent1556f426da3f2fb5842689999933c8038b65c034 (diff)
downloadcpython-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.py2
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)