()
| 1186 | self.assertStartsWith(str(cm.warnings[0].message), "unclosed <StreamWriter") |
| 1187 | |
| 1188 | async def outer(): |
| 1189 | srv = await asyncio.start_server(inner, socket_helper.HOSTv4, 0) |
| 1190 | async with srv: |
| 1191 | addr = srv.sockets[0].getsockname() |
| 1192 | with socket.create_connection(addr): |
| 1193 | # Give the loop some time to notice the connection |
| 1194 | await fut |
| 1195 | |
| 1196 | messages = [] |
| 1197 | self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx)) |
nothing calls this directly
no test coverage detected