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

Method testSelect

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

Source from the content-addressed store, hash-verified

2537 self.cli.sendto(self.data2, 0, (HOST, self.port))
2538
2539 def testSelect(self):
2540 r, w, x = select.select([self.serv], [], [], 3.0)
2541 self.assertIn(self.serv, r)
2542 data, addr = self.serv.recvfrom(self.bufsize)
2543 self.assertEqual(self.data, data)
2544
2545 def _testSelect(self):
2546 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