cpython/Lib/test/test_concurrent_futures
Miss Islington (bot) 414f562081
[3.12] gh-109917: Fix test instability in test_concurrent_futures (GH-110306) (#110315)
gh-109917: Fix test instability in test_concurrent_futures (GH-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).
(cherry picked from commit a376a72bd9)

Co-authored-by: elfstrom <elfstrom@users.noreply.github.com>
2023-10-03 22:28:13 +00:00
..
__init__.py
executor.py [3.12] gh-108834: Sync libregrtest with the main branch (#108966) 2023-09-08 15:14:17 +02:00
test_as_completed.py [3.12] gh-109565: Fix concurrent.futures test_future_times_out() (GH-109949) (#109952) 2023-10-02 17:40:16 +02:00
test_deadlock.py [3.12] gh-109917: Fix test instability in test_concurrent_futures (GH-110306) (#110315) 2023-10-03 22:28:13 +00:00
test_future.py
test_init.py
test_process_pool.py [3.12] gh-109047: concurrent.futures catches RuntimeError (#109810) (#110126) 2023-10-02 17:47:10 +02:00
test_shutdown.py
test_thread_pool.py
test_wait.py [3.12] gh-109594: Fix concurrent.futures test_timeout() (GH-110018) (#110021) 2023-10-02 17:42:03 +02:00
util.py