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

Method _test_closefds

Lib/test/_test_multiprocessing.py:5570–5577  ·  view source on GitHub ↗
(cls, conn, fd)

Source from the content-addressed store, hash-verified

5568
5569 @classmethod
5570 def _test_closefds(cls, conn, fd):
5571 try:
5572 s = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)
5573 except Exception as e:
5574 conn.send(e)
5575 else:
5576 s.close()
5577 conn.send(None)
5578
5579 def test_closefd(self):
5580 if not HAS_REDUCTION:

Callers

nothing calls this directly

Calls 3

fromfdMethod · 0.80
sendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected