cpython/Lib/test/test_concurrent_futures
elfstrom a376a72bd9
gh-109917: Fix test instability in test_concurrent_futures (#110306)
The test had an instability issue due to the ordering of the dummy
queue operation and the real wakeup pipe operations. Both primitives
are thread safe but not done atomically as a single update and may
interleave arbitrarily. With the old order of operations this can lead
to an incorrect state where the dummy queue is full but the wakeup
pipe is empty. By swapping the order in clear() I think this can no
longer happen in any possible operation interleaving (famous last
words).
2023-10-03 22:59:49 +01:00
..
__init__.py
executor.py
test_as_completed.py gh-109565: Fix concurrent.futures test_future_times_out() (#109949) 2023-09-27 08:51:44 +00:00
test_deadlock.py gh-109917: Fix test instability in test_concurrent_futures (#110306) 2023-10-03 22:59:49 +01:00
test_future.py
test_init.py
test_process_pool.py gh-109047: concurrent.futures catches PythonFinalizationError (#109810) 2023-09-29 19:31:19 +00:00
test_shutdown.py
test_thread_pool.py gh-109649: Use os.process_cpu_count() (#110165) 2023-10-01 03:14:57 +02:00
test_wait.py gh-109594: Fix concurrent.futures test_timeout() (#110018) 2023-09-28 15:21:15 +02:00
util.py