gh-116631: Fix race condition in `test_shutdown_immediate_put_join` (#116670)
The test case had a race condition: if `q.task_done()` was executed after `shutdown(immediate=True)`, then it would raise an exception because the immediate shutdown already emptied the queue. This happened rarely with the GIL (due to the switching interval), but frequently in the free-threaded build.
S
Sam Gross committed
98ab21cce6d4c7bd2b5a0a1521b50b1ce2566a44
Parent: 25684e7
Committed by GitHub <noreply@github.com>
on 3/13/2024, 6:56:28 PM