]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
test_asyncio: run_until() implements exponential sleep (#93866)
authorVictor Stinner <vstinner@python.org>
Wed, 15 Jun 2022 16:28:00 +0000 (18:28 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Jun 2022 16:28:00 +0000 (18:28 +0200)
commit41fccd23e9b4397d6cc294b42e1a198cd8f8b268
tree1d6bf960cbbaf6c97e40d9e95534fcb12f5cab0e
parent99be1cbeb3b58f0daa9108abc4075412d6212169
test_asyncio: run_until() implements exponential sleep (#93866)

run_until() of test.test_asyncio.utils now uses an exponential sleep
delay (max: 1 second), rather than a fixed delay of 1 ms. Similar
design than support.sleeping_retry() wait strategy that applies
exponential backoff.
Lib/test/test_asyncio/utils.py