]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109594: Fix concurrent.futures test_timeout() (#110018)
authorVictor Stinner <vstinner@python.org>
Thu, 28 Sep 2023 13:21:15 +0000 (15:21 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Sep 2023 13:21:15 +0000 (15:21 +0200)
commit9be283e5e15d5d5685b78a38eb132501f7f3febb
treefbd8062a253c2e6c0d8daf01c9175ba8877b21ce
parent0baf72696e79191241a2d5cfdfd7e6135115f7b2
gh-109594: Fix concurrent.futures test_timeout() (#110018)

Fix test_timeout() of test_concurrent_futures.test_wait. Remove the
future which may or may not complete depending if it takes longer
than the timeout ot not. Keep the second future which does not
complete before wait(). Make also the test faster: 0.5 second instead
of 6 seconds, so remove @support.requires_resource('walltime')
decorator.
Lib/test/test_concurrent_futures/test_wait.py
Misc/NEWS.d/next/Tests/2023-09-28-14-47-14.gh-issue-109594.DB5KPP.rst [new file with mode: 0644]