Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-116631: Fix race condition in `test_shutdown_immediate_put_j…
…oin` (python#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.
- Loading branch information