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

Function unix_socket_path

Lib/test/test_asyncio/utils.py:245–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243
244 @contextlib.contextmanager
245 def unix_socket_path():
246 path = gen_unix_socket_path()
247 try:
248 yield path
249 finally:
250 try:
251 os.unlink(path)
252 except OSError:
253 pass
254
255
256 @contextlib.contextmanager

Callers 1

run_test_unix_serverFunction · 0.85

Calls 2

gen_unix_socket_pathFunction · 0.85
unlinkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…