cpython/Lib/test/test_asyncio
Kumar Aditya 72f25a8d9a
[3.14] gh-139894: fix incorrect sharing of current task while forking in asyncio (GH-139897) (#139913)
* [3.14] gh-139894: fix incorrect sharing of current task while forking in `asyncio`  (GH-139897)

Fix incorrect sharing of current task with the forked child process by clearing thread state's current task and current loop in `PyOS_AfterFork_Child`.
(cherry picked from commit b881df47ff)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>

* Update Lib/test/test_asyncio/test_unix_events.py
2025-10-10 22:36:02 +05:30
..
__init__.py bpo-40280: Skip socket, fork, subprocess tests on Emscripten (GH-31986) 2022-03-22 03:04:36 -07:00
__main__.py
echo.py
echo2.py
echo3.py
functional.py gh-130322: drop deprecation of asyncio.set_event_loop (#132349) 2025-04-12 12:03:52 +05:30
test_base_events.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_buffered_proto.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_context.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_eager_task_factory.py [3.14] gh-105987: unskip test_issue105987 from test_asyncio.test_eager_task_factory (GH-139538) (#139539) 2025-10-03 23:21:28 +03:00
test_events.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_free_threading.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_futures.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_futures2.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_graph.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_locks.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_pep492.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_proactor_events.py [3.14] gh-135444: fix asyncio.DatagramTransport.sendto to account for datagram header size when data cannot be sent (GH-135445) (#137245) 2025-10-07 23:40:03 +05:30
test_protocols.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_queues.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_runners.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_selector_events.py [3.14] gh-135444: fix asyncio.DatagramTransport.sendto to account for datagram header size when data cannot be sent (GH-135445) (#137245) 2025-10-07 23:40:03 +05:30
test_sendfile.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_server.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_sock_lowlevel.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_ssl.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_sslproto.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_staggered.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_streams.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_subprocess.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_taskgroups.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_tasks.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_threads.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_timeouts.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_tools.py [3.14] gh-135371: Fix asyncio introspection output to include internal coroutine chains (GH-135436) (#135509) 2025-06-15 18:38:56 +00:00
test_transports.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_unix_events.py [3.14] gh-139894: fix incorrect sharing of current task while forking in asyncio (GH-139897) (#139913) 2025-10-10 22:36:02 +05:30
test_waitfor.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_windows_events.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
test_windows_utils.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00
utils.py [3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455) 2025-07-09 08:34:19 +00:00