cpython/Lib/test/test_concurrent_futures
Miss Islington (bot) ff3cadd2a1
[3.11] gh-109594: Fix concurrent.futures test_timeout() (GH-110018) (#110022)
gh-109594: Fix concurrent.futures test_timeout() (GH-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.
(cherry picked from commit 9be283e5e1)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-28 13:49:56 +00:00
..
__init__.py
executor.py
test_as_completed.py
test_deadlock.py [3.11] gh-109832: concurrent.futures test_deadlock restores sys.stderr (GH-109887) (#109893) 2023-09-26 11:08:27 +00:00
test_future.py
test_init.py
test_process_pool.py
test_shutdown.py
test_thread_pool.py
test_wait.py [3.11] gh-109594: Fix concurrent.futures test_timeout() (GH-110018) (#110022) 2023-09-28 13:49:56 +00:00
util.py