cpython/Lib/test/test_asyncio
Miss Islington (bot) 9cbe4738bc
[3.11] GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios (GH-113334) (#113340)
When wrapped, `_SSLProtocolTransport._force_close(exc)` is called just like in the unwrapped scenario `_SelectorTransport._force_close(exc)` or `_ProactorBasePipeTransport._force_close(exc)` would be called, except here the exception needs to be passed through the `SSLProtocol._abort()` method, which didn't accept an exception object.

This commit ensures that this path works, in the same way that the uvloop implementation of SSLProto passes on the exception (on which the current implementation of SSLProto is based).

(cherry picked from commit 1ff0238594)

Co-authored-by: Martijn Pieters <mj@zopatista.com>
2023-12-20 16:51:51 -08:00
..
__init__.py bpo-40280: Skip socket, fork, subprocess tests on Emscripten (GH-31986) 2022-03-22 03:04:36 -07:00
__main__.py Issue #22002: Make full use of test discovery in test sub-packages. 2014-07-23 12:00:29 -05:00
echo.py
echo2.py
echo3.py
functional.py bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968) 2021-08-26 14:48:24 +02:00
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 bpo-38242: Revert "bpo-36889: Merge asyncio streams (GH-13251)" (#16482) 2019-09-29 21:59:55 -07:00
test_context.py bpo-46425: fix direct invocation of asyncio tests (#30725) 2022-01-22 13:06:27 +02:00
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 [3.11] bpo-45924: Fix asyncio incorrect traceback when future's exception is raised multiple times (GH-30274) (#94747) 2022-07-11 14:17:32 +01:00
test_locks.py gh-97545: Make Semaphore run faster. (GH-97549) 2022-09-26 17:00:53 -07:00
test_pep492.py bpo-43216: Remove @asyncio.coroutine (GH-26369) 2021-07-01 15:13:59 +02:00
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 Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253) 2022-02-10 14:57:20 +02:00
test_queues.py bpo-47076: Make asyncio.Queue stable on slow test boxes (GH-32040) 2022-03-22 16:00:23 +02:00
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 bpo-42392: Remove loop parameter from asyncio.streams (GH-23517) 2020-11-26 09:36:37 +02:00
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-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios (GH-113334) (#113340) 2023-12-20 16:51:51 -08:00
test_streams.py [3.11] gh-109538: Catch closed loop runtime error and issue warning (GH-111983) (#112141) 2023-11-20 15:12:17 -08: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 bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase (GH-32086) 2022-03-23 23:17:07 +02:00
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 Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253) 2022-02-10 14:57:20 +02:00
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 bpo-44287: asyncio test_popen() uses longer timeout (GH-26832) 2021-06-22 01:58:19 +02:00
utils.py [3.11] gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (GH-110884) (#111413) 2023-10-27 16:36:24 -07:00