cpython/Lib/test/test_asyncio
Miss Islington (bot) e35d340960
[3.14] gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-155235) (GH-158957) (#161411)
gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-155235) (GH-158957)

* Initial commit:
- add a private ``_index`` attr
- add a test

Co-authored-by: Sreehari Annam

* 📜🤖 Added by blurb_it.

* Apply suggestions from code review

* Update Lib/asyncio/locks.py

* Update Lib/asyncio/locks.py

---------
(cherry picked from commit 49c43f7de0)

Co-authored-by: Duprat <yduprat@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2026-11-05 13:00:55 +01:00
..
__init__.py
__main__.py
echo.py
echo2.py
echo3.py
functional.py
test_base_events.py [3.14] gh-161076: Ignore setsockopt(TCP_NODELAY) errors in asyncio (GH-161253) (#161302) 2026-11-04 10:00:57 +01:00
test_buffered_proto.py
test_context.py
test_eager_task_factory.py [3.14] gh-158097: Make test_staggered_race_with_eager_tasks deterministic (GH-158469) (#161224) 2026-11-02 23:46:37 +00:00
test_events.py
test_free_threading.py [3.14] gh-159449: Fix free-threaded asyncio race that corrupts the task lists (GH-159483) (#161380) 2026-11-05 12:07:38 +05:30
test_futures.py
test_futures2.py
test_graph.py
test_locks.py [3.14] gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-155235) (GH-158957) (#161411) 2026-11-05 13:00:55 +01:00
test_pep492.py
test_proactor_events.py [3.14] gh-160429: Ignore ConnectionResetError from shutdown() when closing proactor sockets (GH-160909) (#161392) 2026-11-05 12:37:25 +01:00
test_protocols.py
test_queues.py
test_runners.py
test_selector_events.py
test_sendfile.py [3.14] gh-159875: Keep the SSL protocol of a closed transport after connection loss (GH-160069) (#161208) 2026-11-02 22:29:05 +01:00
test_server.py
test_sock_lowlevel.py
test_ssl.py [3.14] gh-159875: Keep the SSL protocol of a closed transport after connection loss (GH-160069) (#161208) 2026-11-02 22:29:05 +01:00
test_sslproto.py [3.14] gh-159875: Keep the SSL protocol of a closed transport after connection loss (GH-160069) (#161208) 2026-11-02 22:29:05 +01:00
test_staggered.py
test_streams.py
test_subprocess.py
test_taskgroups.py
test_tasks.py [3.14] gh-157301: Fix asyncio event loop hanging on a failed eager task start (#157844) 2026-11-02 19:27:54 +05:30
test_threads.py
test_timeouts.py [3.14] gh-137549: Handle BaseExceptionGroup in asyncio.Timeout.__aexit__ (GH-160957) (#160961) 2026-10-30 10:53:43 +01:00
test_tools.py [3.14] gh-159168: Fix RecursionError in asyncio pstree on a deep chain of tasks (GH-159170) (#161177) 2026-11-02 14:24:23 +01:00
test_transports.py
test_unix_events.py
test_waitfor.py
test_windows_events.py [3.14] gh-93821: Keep asyncio proactor servers accepting after a connection reset (GH-161238) (#161309) 2026-11-04 11:35:37 +00:00
test_windows_utils.py
utils.py