diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-15 16:49:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 16:49:14 (GMT) |
commit | 50e0866f8792941d2aea8937c63d1cb37bbc35cf (patch) | |
tree | 39d7ab435d4e961ca1212c5ab6453b0bb687376b /Lib/test/test_concurrent_futures.py | |
parent | 46e455f21c23b03fd68055fbd97e9d0c449f00a5 (diff) | |
download | cpython-50e0866f8792941d2aea8937c63d1cb37bbc35cf.zip cpython-50e0866f8792941d2aea8937c63d1cb37bbc35cf.tar.gz cpython-50e0866f8792941d2aea8937c63d1cb37bbc35cf.tar.bz2 |
Tests call sleeping_retry() with SHORT_TIMEOUT (#93870)
Tests now call busy_retry() and sleeping_retry() with SHORT_TIMEOUT
or LONG_TIMEOUT (of test.support), rather than hardcoded constants.
Add also WAIT_ACTIVE_CHILDREN_TIMEOUT constant to
_test_multiprocessing.
Diffstat (limited to 'Lib/test/test_concurrent_futures.py')
-rw-r--r-- | Lib/test/test_concurrent_futures.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py index c121653..f50255b 100644 --- a/Lib/test/test_concurrent_futures.py +++ b/Lib/test/test_concurrent_futures.py @@ -258,7 +258,8 @@ class FailingInitializerMixin(ExecutorMixin): future.result() # At some point, the executor should break - for _ in support.sleeping_retry(5, "executor not broken"): + for _ in support.sleeping_retry(support.SHORT_TIMEOUT, + "executor not broken"): if self.executor._broken: break |