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

Method setUp

Lib/test/test_socket.py:572–580  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

570 ThreadableTest.__init__(self)
571
572 def setUp(self):
573 self.serv = socket.socket(socket.AF_VSOCK, socket.SOCK_STREAM)
574 self.addCleanup(self.serv.close)
575 self.serv.bind((socket.VMADDR_CID_ANY, VSOCKPORT))
576 self.serv.listen()
577 self.serverExplicitReady()
578 self.serv.settimeout(support.LOOPBACK_TIMEOUT)
579 self.conn, self.connaddr = self.serv.accept()
580 self.addCleanup(self.conn.close)
581
582 def clientSetUp(self):
583 time.sleep(0.1)

Callers

nothing calls this directly

Calls 7

socketMethod · 0.80
addCleanupMethod · 0.80
serverExplicitReadyMethod · 0.80
bindMethod · 0.45
listenMethod · 0.45
settimeoutMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected