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

Method setUp

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

Source from the content-addressed store, hash-verified

622 ThreadedTCPSocketTest.__init__(self, methodName=methodName)
623
624 def setUp(self):
625 ThreadedTCPSocketTest.setUp(self)
626 # Indicate explicitly we're ready for the client thread to
627 # proceed and then perform the blocking call to accept
628 self.serverExplicitReady()
629 conn, addr = self.serv.accept()
630 self.cli_conn = conn
631
632 def tearDown(self):
633 self.cli_conn.close()

Callers

nothing calls this directly

Calls 3

serverExplicitReadyMethod · 0.80
setUpMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected