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

Method testDup

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

Source from the content-addressed store, hash-verified

3133 self.serv_conn.send(MSG)
3134
3135 def testDup(self):
3136 # Testing dup()
3137 sock = self.cli_conn.dup()
3138 self.addCleanup(sock.close)
3139 msg = sock.recv(1024)
3140 self.assertEqual(msg, MSG)
3141
3142 def _testDup(self):
3143 self.serv_conn.send(MSG)

Callers

nothing calls this directly

Calls 4

addCleanupMethod · 0.80
dupMethod · 0.45
recvMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected