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

Method detach

Lib/test/test_socket.py:7510–7512  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7508 s.close()
7509
7510 def detach():
7511 for _ in range(1000):
7512 s.detach()
7513
7514 t1 = threading.Thread(target=close)
7515 t2 = threading.Thread(target=detach)

Callers 15

test_detachMethod · 0.45
childMethod · 0.45
_test_socket_filenoMethod · 0.45
testDetachMethod · 0.45
test_finalizeMethod · 0.45
test_orderMethod · 0.45
test_response_filenoMethod · 0.45
get_high_socket_fdMethod · 0.45
test_reprMethod · 0.45
closedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected