cpython/Lib/test/test_asyncio
Miss Islington (bot) 50504817a8
[3.15] gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-155235) (GH-158957) (#161410)
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:47 +01:00
..
__init__.py
__main__.py
echo.py
echo2.py
echo3.py
functional.py
test_base_events.py [3.15] gh-161076: Ignore setsockopt(TCP_NODELAY) errors in asyncio (GH-161253) (#161301) 2026-11-04 10:01:10 +01:00
test_buffered_proto.py
test_context.py
test_eager_task_factory.py [3.15] gh-158097: Make test_staggered_race_with_eager_tasks deterministic (GH-158469) (#161223) 2026-11-02 23:44:05 +00:00
test_events.py
test_free_threading.py [3.15] gh-159449: Fix free-threaded asyncio race that corrupts the task lists (GH-159483) (#161379) 2026-11-05 12:07:26 +05:30
test_futures.py
test_futures2.py
test_graph.py
test_locks.py [3.15] gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-155235) (GH-158957) (#161410) 2026-11-05 13:00:47 +01:00
test_pep492.py
test_proactor_events.py [3.15] gh-160429: Ignore ConnectionResetError from shutdown() when closing proactor sockets (GH-160909) (#161391) 2026-11-05 12:37:31 +01:00
test_protocols.py
test_queues.py
test_runners.py
test_selector_events.py
test_sendfile.py [3.15] gh-159875: Keep the SSL protocol of a closed transport after connection loss (GH-160069) (#161209) 2026-11-02 23:14:17 +01:00
test_server.py
test_server_context.py
test_sock_lowlevel.py
test_ssl.py [3.15] gh-159875: Keep the SSL protocol of a closed transport after connection loss (GH-160069) (#161209) 2026-11-02 23:14:17 +01:00
test_sslproto.py [3.15] gh-159875: Keep the SSL protocol of a closed transport after connection loss (GH-160069) (#161209) 2026-11-02 23:14:17 +01:00
test_staggered.py
test_streams.py
test_subprocess.py
test_taskgroups.py
test_tasks.py [3.15] gh-157856: Fix asyncio.as_completed() outside a running event loop (GH-157857) (#160232) 2026-10-29 18:00:20 +05:30
test_threads.py
test_timeouts.py [3.15] gh-137549: Handle BaseExceptionGroup in asyncio.Timeout.__aexit__ (GH-160957) (#160960) 2026-10-30 10:53:32 +01:00
test_tools.py [3.15] gh-159168: Fix RecursionError in asyncio pstree on a deep chain of tasks (GH-159170) (#161176) 2026-11-02 14:24:35 +01:00
test_transports.py
test_unix_events.py
test_waitfor.py
test_windows_events.py [3.15] gh-93821: Keep asyncio proactor servers accepting after a connection reset (GH-161238) (#161308) 2026-11-04 11:37:58 +00:00
test_windows_utils.py
utils.py