MCPcopy Index your code
hub / github.com/docker/docker-py / _setup_socket

Method _setup_socket

tests/unit/api_test.py:385–391  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

383 self.stop_server = True
384
385 def _setup_socket(self):
386 server_sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
387 server_sock.bind(self.socket_file)
388 # Non-blocking mode so that we can shut the test down easily
389 server_sock.setblocking(0)
390 server_sock.listen(5)
391 return server_sock
392
393 def run_server(self):
394 try:

Callers 1

setUpMethod · 0.95

Calls 3

bindMethod · 0.80
setblockingMethod · 0.80
listenMethod · 0.80

Tested by

no test coverage detected