We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8646385 commit 11f032fCopy full SHA for 11f032f
1 file changed
Lib/test/test_asyncio/test_ssl.py
@@ -1544,6 +1544,9 @@ async def client(addr):
1544
# This triggers bug gh-115514, also tested using mocks in
1545
# test.test_asyncio.test_selector_events.SelectorSocketTransportTests.test_write_buffer_after_close
1546
socket_transport = writer.transport._ssl_protocol._transport
1547
+ # connection_lost may have already cleared _transport.
1548
+ if socket_transport is None:
1549
+ return
1550
1551
class SocketWrapper:
1552
def __init__(self, sock) -> None:
0 commit comments