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

Method testSelect

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

Source from the content-addressed store, hash-verified

2641 self.cli.sendto(self.data2, 0, (HOST, self.port))
2642
2643 def testSelect(self):
2644 r, w, x = select.select([self.serv], [], [], 3.0)
2645 self.assertIn(self.serv, r)
2646 data, addr = self.serv.recvfrom(self.bufsize)
2647 self.assertEqual(self.data, data)
2648
2649 def _testSelect(self):
2650 self.data = b'select'

Callers

nothing calls this directly

Calls 4

assertInMethod · 0.80
selectMethod · 0.45
recvfromMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected