https://github.com/python/cpython/commit/c8e60d589733e688e24ca5dc1aabb6a6dae5b39c commit: c8e60d589733e688e24ca5dc1aabb6a6dae5b39c branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: itamaro <[email protected]> date: 2026-06-15T22:54:53-07:00 summary:
[3.13] gh-151522: Guard against None transport in slow-socket SSL test (GH-151523) (#151530) gh-151522: Guard against None transport in slow-socket SSL test (GH-151523) (cherry picked from commit 11f032f904c8019b332a3c367f335e05cde63628) Co-authored-by: Itamar Oren <[email protected]> files: M Lib/test/test_asyncio/test_ssl.py diff --git a/Lib/test/test_asyncio/test_ssl.py b/Lib/test/test_asyncio/test_ssl.py index 4ebf0f7f7bd2016..b9567ea3ee61189 100644 --- a/Lib/test/test_asyncio/test_ssl.py +++ b/Lib/test/test_asyncio/test_ssl.py @@ -1544,6 +1544,9 @@ async def client(addr): # This triggers bug gh-115514, also tested using mocks in # test.test_asyncio.test_selector_events.SelectorSocketTransportTests.test_write_buffer_after_close socket_transport = writer.transport._ssl_protocol._transport + # connection_lost may have already cleared _transport. + if socket_transport is None: + return class SocketWrapper: def __init__(self, sock) -> None: _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
