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

Method close

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

Source from the content-addressed store, hash-verified

5894 return fd
5895
5896 def close(self, fd):
5897 if WIN32:
5898 socket.socket(socket.AF_INET, socket.SOCK_STREAM, fileno=fd).close()
5899 else:
5900 os.close(fd)
5901
5902 @classmethod
5903 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