cpython/Lib/test/test_asyncio
Miss Islington (bot) f7ffe4a8ea
[3.11] [3.12] GH-110894: Call loop exception handler for exceptions in client_connected_cb (GH-111601) (GH-111632) (#111634)
* [3.12] GH-110894: Call loop exception handler for exceptions in client_connected_cb (GH-111601) (GH-111632)
(cherry picked from commit 9aa88290d8)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Call loop exception handler for exceptions in `client_connected_cb` of `asyncio.start_server` so that applications can handle it..
(cherry picked from commit 229f44d353)

* gh-111644: Fix asyncio test_unhandled_exceptions() (#111713)

Fix test_unhandled_exceptions() of test_asyncio.test_streams: break
explicitly a reference cycle.

Fix also StreamTests.tearDown(): the loop must not be closed
explicitly, but using set_event_loop() which takes care of shutting
down the executor with executor.shutdown(wait=True).
BaseEventLoop.close() calls executor.shutdown(wait=False).

(cherry picked from commit ac01e2243a)

---------

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-11-04 01:23:01 +00:00
..
__init__.py
__main__.py
echo.py
echo2.py
echo3.py
functional.py
test_base_events.py [3.11] gh-110088, gh-109878: Fix test_asyncio timeouts (#110092) (#110099) 2023-09-29 14:16:15 +02:00
test_buffered_proto.py
test_context.py
test_events.py [3.11] gh-110088: Fix asyncio test_prompt_cancellation() (GH-110157) (#110159) 2023-09-30 21:01:33 +00:00
test_futures.py [3.11] gh-101326: Fix regression when passing None to FutureIter.throw (GH-101327) (#101328) 2023-01-25 13:01:13 -08:00
test_futures2.py
test_locks.py
test_pep492.py
test_proactor_events.py [3.11] gh-103607: Fix pause_reading to work when called from connection_made in asyncio. (GH-17425) (#103918) 2023-04-27 10:29:54 +00:00
test_protocols.py
test_queues.py
test_runners.py [3.11] Trim trailing whitespace and test on CI (GH-104275) (#108215) 2023-08-22 12:57:31 +03:00
test_selector_events.py [3.11] gh-103607: Fix pause_reading to work when called from connection_made in asyncio. (GH-17425) (#103918) 2023-04-27 10:29:54 +00:00
test_sendfile.py [3.11] gh-111347: Remove wrong assertion in test_sendfile (GH-111377) (#111462) 2023-10-30 18:14:30 -07:00
test_server.py
test_sock_lowlevel.py [3.11] gh-109015: Add test.support.socket_helper.tcp_blackhole() (#109016) (#109042) 2023-09-07 00:34:16 +00:00
test_ssl.py gh-60203: Always pass True/False as boolean arguments in tests (GH-99983) 2022-12-04 04:50:46 -08:00
test_sslproto.py [3.11] gh-109015: Add test.support.socket_helper.tcp_blackhole() (#109016) (#109042) 2023-09-07 00:34:16 +00:00
test_streams.py [3.11] [3.12] GH-110894: Call loop exception handler for exceptions in client_connected_cb (GH-111601) (GH-111632) (#111634) 2023-11-04 01:23:01 +00:00
test_subprocess.py [3.11] Add support.MS_WINDOWS constant (#110446) (#110452) (#110464) 2023-10-06 10:19:49 +00:00
test_taskgroups.py [3.11] gh-111085: Fix invalid state handling in TaskGroup and Timeout (GH-111111) (GH-111172) 2023-10-21 19:40:07 +00:00
test_tasks.py [3.11] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created (#99949) 2022-12-06 16:15:44 +01:00
test_threads.py
test_timeouts.py [3.11] gh-111085: Fix invalid state handling in TaskGroup and Timeout (GH-111111) (GH-111172) 2023-10-21 19:40:07 +00:00
test_transports.py
test_unix_events.py [3.11] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created (#99949) 2022-12-06 16:15:44 +01:00
test_waitfor.py [3.11] gh-110088, gh-109878: Fix test_asyncio timeouts (#110092) (#110099) 2023-09-29 14:16:15 +02:00
test_windows_events.py [3.11] gh-110088, gh-109878: Fix test_asyncio timeouts (#110092) (#110099) 2023-09-29 14:16:15 +02:00
test_windows_utils.py
utils.py [3.11] gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (GH-110884) (#111413) 2023-10-27 16:36:24 -07:00