MCPcopy Index your code
hub / github.com/python/cpython / cleanup

Method cleanup

Lib/test/test_asyncio/test_sendfile.py:281–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279 self.reduce_send_buffer_size(cli_sock, transport=tr)
280
281 def cleanup():
282 srv_proto.transport.close()
283 cli_proto.transport.close()
284 self.run_loop(srv_proto.done)
285 self.run_loop(cli_proto.done)
286
287 server.close()
288 self.run_loop(server.wait_closed())
289
290 self.addCleanup(cleanup)
291 return srv_proto, cli_proto

Callers

nothing calls this directly

Calls 3

closeMethod · 0.45
run_loopMethod · 0.45
wait_closedMethod · 0.45

Tested by

no test coverage detected