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

Method close

Lib/test/_test_multiprocessing.py:5563–5567  ·  view source on GitHub ↗
(self, fd)

Source from the content-addressed store, hash-verified

5561 return fd
5562
5563 def close(self, fd):
5564 if WIN32:
5565 socket.socket(socket.AF_INET, socket.SOCK_STREAM, fileno=fd).close()
5566 else:
5567 os.close(fd)
5568
5569 @classmethod
5570 def _test_closefds(cls, conn, fd):

Callers 1

test_closefdMethod · 0.95

Calls 2

socketMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected