cpython/Lib/test/test_asyncio
Thomas Grainger fd6a602d04
[3.13] gh-133745: Fix asyncio task factory name/context kwarg breaks (#133948)
In 3.13.3 we accidentally broke the interface for custom task factory. Factory authors added workarounds.
This PR (for 3.13.4) unbreaks task factories that haven't made a workaround yet while also supporting those that have.

NOTE: The custom task factory API will change to what we accidentally released in 3.13.3.

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
2025-05-18 06:50:07 -07:00
..
__init__.py
__main__.py
echo.py
echo2.py
echo3.py
functional.py
test_base_events.py [3.13] gh-130736: Fix asyncio test_shutdown_default_executor_timeout() (GH-130800) (#130825) 2025-03-04 17:41:31 +05:30
test_buffered_proto.py
test_context.py
test_eager_task_factory.py [3.13] gh-128308: pass `**kwargs` to asyncio task_factory (GH-128768) (#130084) 2025-02-14 22:04:17 +05:30
test_events.py [3.13] gh-131645: fix ResourceWarnings in `test_asyncio.test_events` (#131646) (#131661) 2025-03-24 13:18:57 +00:00
test_futures.py [3.13] gh-125966: fix use-after-free on `fut->fut_callback0` due to an evil callback's `__eq__` in asyncio (GH-125967) (#126047) 2024-10-27 17:36:10 +00:00
test_futures2.py GH-96764: rewrite `asyncio.wait_for` to use `asyncio.timeout` (#98518) 2023-02-17 00:18:21 +05:30
test_locks.py gh-112202: Ensure that condition.notify() succeeds even when racing with Task.cancel() (#112201) 2024-02-03 08:19:37 -08:00
test_pep492.py GH-102748: remove legacy support for generator based coroutines from `asyncio.iscoroutine` (#102749) 2023-03-16 20:28:10 +05:30
test_proactor_events.py [3.13] gh-113892: Add a extra check to `ProactorEventLoop.sock_connect` to ensure that the given socket is in non-blocking mode (GH-119519) (#119912) 2024-06-01 16:27:54 +00:00
test_protocols.py
test_queues.py gh-96471: Add asyncio queue shutdown (#104228) 2024-04-06 07:27:13 -07:00
test_runners.py gh-112559: Avoid unnecessary conversion attempts to enum_klass in signal.py (#113040) 2023-12-23 17:07:52 -08:00
test_selector_events.py [3.13] gh-115514: Fix incomplete writes after close while using ssl in asyncio(GH-128037) (#129581) 2025-02-02 16:12:12 +00:00
test_sendfile.py [3.13] gh-120226: Fix test_sendfile_close_peer_in_the_middle_of_receiving on Linux >= 6.10 (GH-120227) (#123421) 2024-09-02 13:14:03 +02:00
test_server.py [3.13] gh-122136: test_asyncio: Don't fail if the kernel buffers more data than advertised (GH-123423) (#123443) 2024-08-29 11:44:54 +02:00
test_sock_lowlevel.py gh-91227: Ignore ERROR_PORT_UNREACHABLE in proactor recvfrom() (#32011) 2024-03-23 08:39:35 -07:00
test_ssl.py [3.13] gh-133454: Mark tests with many threads that use much memory as bigmem (GH-133456) (GH-133664) 2025-05-08 13:20:34 +00:00
test_sslproto.py [3.13] gh-118950: Fix SSLProtocol.connection_lost not being called when OSError is thrown (GH-118960) (#125931) 2024-10-26 22:01:47 +05:30
test_staggered.py [3.13] gh-128479: fix asyncio staggered race leaking tasks, and logging unhandled exception.append exception (GH-128475) (#129227) 2025-01-23 22:16:02 +01:00
test_streams.py [3.13] gh-124858: fix happy eyeballs refcyles (GH-124859) (#124912) 2024-10-23 12:35:56 -07:00
test_subprocess.py [3.13] gh-87744: fix waitpid race while calling send_signal in asyncio (GH-121126) (#121194) 2024-07-01 05:11:47 +00:00
test_taskgroups.py [3.13] gh-133745: Fix asyncio task factory name/context kwarg breaks (#133948) 2025-05-18 06:50:07 -07:00
test_tasks.py [3.13] gh-127949: fix resource warnings in `test_tasks.py` (GH-128172) (#131805) 2025-03-28 19:32:03 +05:30
test_threads.py [3.13] gh-122957: Fix test flakiness in asyncio test in free-thread build (GH-124039) (#124067) 2024-09-23 11:07:41 -07:00
test_timeouts.py gh-96037: Always insert TimeoutError when exit an expired asyncio.timeout() block (GH-113819) 2024-01-10 12:50:31 +02:00
test_transports.py
test_unix_events.py [3.13] gh-117657: Skip tests that use threads after fork (GH-122194) (#122198) 2024-07-23 21:00:21 +00:00
test_waitfor.py chore: fix typos (#116345) 2024-03-05 09:05:52 -07:00
test_windows_events.py gh-116773: Ensure overlapped objects on Windows are not deallocated too early by asyncio (GH-116774) 2024-03-20 14:33:28 +00:00
test_windows_utils.py
utils.py [3.13] gh-133016: Fix a reference to removed `asyncio.futures.TimeoutError` (GH-133019) (#133023) 2025-04-26 19:46:11 +00:00