cpython/Lib/test/test_asyncio
Miss Islington (bot) 5ba9d2b98f
[3.12] gh-108973: Fix asyncio test_subprocess_consistent_callbacks() (GH-109431) (#109609)
gh-108973: Fix asyncio test_subprocess_consistent_callbacks() (GH-109431)

SubprocessProtocol process_exited() method can be called before
pipe_data_received() and pipe_connection_lost() methods. Document it
and adapt the test for that.

Revert commit 282edd7b2a.
_child_watcher_callback() calls immediately _process_exited(): don't
add an additional delay with call_soon(). The reverted change didn't
make _process_exited() more determistic: it can still be called
before pipe_connection_lost() for example.

(cherry picked from commit ced6924630)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Davide Rizzo <sorcio@gmail.com>
2023-10-02 17:03:51 +02:00
..
__init__.py
__main__.py
echo.py
echo2.py
echo3.py
functional.py
test_base_events.py Fix potential flakiness in test_run_until_complete_baseexception (#100148) 2022-12-10 15:34:22 +05:30
test_buffered_proto.py
test_context.py
test_eager_task_factory.py [3.12] gh-105987: Fix reference counting issue in `_asyncio._swap_cur… (#106099) 2023-06-26 08:51:28 +00:00
test_events.py [3.12] gh-109295: Clean up multiprocessing in test_asyncio and test_compileall (GH-109298) (#109301) 2023-09-12 16:22:43 +02:00
test_futures.py gh-101326: Fix regression when passing None to FutureIter.throw (#101327) 2023-01-25 12:01:01 -08: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-97545: Make Semaphore run faster. (#97549) 2022-09-26 16:38:00 -07: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 gh-103607: Fix pause_reading to work when called from connection_made in asyncio. (#17425) 2023-04-27 15:33:29 +05:30
test_protocols.py
test_queues.py
test_runners.py [3.12] gh-107895: Fix test_asyncio.test_runners when run it in CPython's "development mode" (GH-108168) (#108196) 2023-08-21 13:18:04 +02:00
test_selector_events.py gh-103607: Fix pause_reading to work when called from connection_made in asyncio. (#17425) 2023-04-27 15:33:29 +05:30
test_sendfile.py gh-98174: Handle EPROTOTYPE under macOS in test_sendfile_fallback_close_peer_in_the_middle_of_receiving (#98316) 2022-10-17 08:45:38 -07:00
test_server.py GH-79033: Fix asyncio.Server.wait_closed() (#98582) 2022-11-24 08:32:58 -07:00
test_sock_lowlevel.py [3.12] gh-109015: Add test.support.socket_helper.tcp_blackhole() (GH-109016) (#109041) 2023-09-08 15:12:29 +02:00
test_ssl.py gh-102515: Remove unused imports in the Lib/ directory (#102516) 2023-03-08 11:45:38 +00:00
test_sslproto.py [3.12] gh-109015: Add test.support.socket_helper.tcp_blackhole() (GH-109016) (#109041) 2023-09-08 15:12:29 +02:00
test_streams.py gh-93453: No longer create an event loop in get_event_loop() (#98440) 2022-12-06 18:42:12 +01:00
test_subprocess.py [3.12] gh-108973: Fix asyncio test_subprocess_consistent_callbacks() (GH-109431) (#109609) 2023-10-02 17:03:51 +02:00
test_taskgroups.py GH-95704: Don't suppress errors from tasks when TG is cancelled (#95761) 2022-08-16 18:23:06 -07:00
test_tasks.py gh-103793: Defer formatting task name (#103767) 2023-04-29 08:20:09 -07:00
test_threads.py
test_timeouts.py gh-102780: Fix uncancel() call in asyncio timeouts (#102815) 2023-03-22 10:52:10 -07:00
test_transports.py
test_unix_events.py gh-103780: Use patch instead of mock in asyncio unix events test (#103782) 2023-04-24 20:12:48 +00:00
test_waitfor.py GH-97546: fix flaky asyncio test_wait_for_race_condition test (#102421) 2023-03-05 12:15:22 +05:30
test_windows_events.py GH-100573: Fix server hang caused by os.stat() on named pipe (Windows) (#100959) 2023-01-13 13:24:57 -08:00
test_windows_utils.py
utils.py gh-102799: use sys.exception() instead of sys.exc_info() in tests (#103293) 2023-04-06 11:08:25 +01:00