]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-128364: Fix flaky `test_concurrent_futures.test_wait` tests (gh-130742...
authorSam Gross <colesbury@gmail.com>
Thu, 6 Mar 2025 18:49:03 +0000 (13:49 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Mar 2025 18:49:03 +0000 (13:49 -0500)
commit0c088e44428d74d701fe1fc80a4cb4fe124c43f0
treed5bb2c65a8a4483aee0668f44735ffcd974a5d4f
parente285232c76606e3be7bf216efb1be1e742423e4b
[3.13] gh-128364: Fix flaky `test_concurrent_futures.test_wait` tests (gh-130742) (#130922)

Use events instead of relying on `time.sleep()`. The tests are also now about
four times faster.
(cherry picked from commit c4d37eefb7b33f10f776183447af44faf8efa7f6)
Lib/test/test_concurrent_futures/test_wait.py
Lib/test/test_concurrent_futures/util.py