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

Method _testClose

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

Source from the content-addressed store, hash-verified

5141 conn.close()
5142
5143 def _testClose(self):
5144 self.cli.connect((HOST, self.port))
5145 self.cli.send(b'x')
5146 read, _, _ = select.select([self.cli], [], [], support.SHORT_TIMEOUT)
5147 self.assertEqual(read, [self.cli])
5148 self.assertEqual(self.cli.recv(1), b'')
5149
5150
5151class 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