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

Method _testClose

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

Source from the content-addressed store, hash-verified

5244 conn.close()
5245
5246 def _testClose(self):
5247 self.cli.connect((HOST, self.port))
5248 self.cli.send(b'x')
5249 read, _, _ = select.select([self.cli], [], [], support.SHORT_TIMEOUT)
5250 self.assertEqual(read, [self.cli])
5251 self.assertEqual(self.cli.recv(1), b'')
5252
5253
5254class BasicSocketPairTest(SocketPairTest):

Callers

nothing calls this directly

Calls 5

connectMethod · 0.45
sendMethod · 0.45
selectMethod · 0.45
assertEqualMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected