]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128364: Fix flaky `test_concurrent_futures.test_wait` tests (gh-130742)
authorSam Gross <colesbury@gmail.com>
Thu, 6 Mar 2025 17:30:58 +0000 (12:30 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Mar 2025 17:30:58 +0000 (12:30 -0500)
commitc4d37eefb7b33f10f776183447af44faf8efa7f6
treed86ae3331248b47ab5aa0f885621e2d249359176
parent052cb717f5f97d08d2074f4118fd2c21224d3015
gh-128364: Fix flaky `test_concurrent_futures.test_wait` tests (gh-130742)

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