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

Method background

Lib/test/test_ssl.py:4976–4979  ·  view source on GitHub ↗
(sock)

Source from the content-addressed store, hash-verified

4974 data = b"1" * 1024
4975 event = threading.Event()
4976 def background(sock):
4977 event.set()
4978 received = sock.recv(len(data))
4979 self.assertEqual(received, data)
4980
4981 client_context, server_context, hostname = testing_context()
4982 server = ThreadedEchoServer(context=server_context)

Callers

nothing calls this directly

Calls 3

setMethod · 0.45
recvMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected