diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-28 13:21:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 13:21:15 (GMT) |
commit | 9be283e5e15d5d5685b78a38eb132501f7f3febb (patch) | |
tree | fbd8062a253c2e6c0d8daf01c9175ba8877b21ce /Misc | |
parent | 0baf72696e79191241a2d5cfdfd7e6135115f7b2 (diff) | |
download | cpython-9be283e5e15d5d5685b78a38eb132501f7f3febb.zip cpython-9be283e5e15d5d5685b78a38eb132501f7f3febb.tar.gz cpython-9be283e5e15d5d5685b78a38eb132501f7f3febb.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2023-09-28-14-47-14.gh-issue-109594.DB5KPP.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2023-09-28-14-47-14.gh-issue-109594.DB5KPP.rst b/Misc/NEWS.d/next/Tests/2023-09-28-14-47-14.gh-issue-109594.DB5KPP.rst new file mode 100644 index 0000000..5a4ae2b --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2023-09-28-14-47-14.gh-issue-109594.DB5KPP.rst @@ -0,0 +1,4 @@ +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() +timeout. Patch by Victor Stinner. |