MCPcopy Index your code
hub / github.com/RustPython/RustPython / background

Method background

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

Source from the content-addressed store, hash-verified

4581 data = b"1" * 1024
4582 event = threading.Event()
4583 def background(sock):
4584 event.set()
4585 received = sock.recv(len(data))
4586 self.assertEqual(received, data)
4587
4588 client_context, server_context, hostname = testing_context()
4589 server = ThreadedEchoServer(context=server_context)

Callers

nothing calls this directly

Calls 4

lenFunction · 0.85
setMethod · 0.45
recvMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected