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

Method clientSetUp

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

Source from the content-addressed store, hash-verified

5800 """Prove network connection."""
5801
5802 def clientSetUp(self):
5803 # We're inherited below by BasicTCPTest2, which also inherits
5804 # BasicTCPTest, which defines self.port referenced below.
5805 self.cli = socket.create_connection((HOST, self.port))
5806 self.serv_conn = self.cli
5807
5808class BasicTCPTest2(NetworkConnectionTest, BasicTCPTest):
5809 """Tests that NetworkConnection does not break existing TCP functionality.

Callers

nothing calls this directly

Calls 1

create_connectionMethod · 0.45

Tested by

no test coverage detected