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

Method test_disable_socket_timeout2

tests/unit/api_test.py:645–654  ·  view source on GitHub ↗

Test that the timeouts are disabled on a generic socket object and it's _sock object if present.

(self)

Source from the content-addressed store, hash-verified

643 assert socket.timeout is None
644
645 def test_disable_socket_timeout2(self):
646 """Test that the timeouts are disabled on a generic socket object
647 and it's _sock object if present."""
648 socket = self.DummySocket()
649 socket._sock = self.DummySocket()
650
651 self.client._disable_socket_timeout(socket)
652
653 assert socket.timeout is None
654 assert socket._sock.timeout is None
655
656 def test_disable_socket_timout_non_blocking(self):
657 """Test that a non-blocking socket does not get set to blocking."""

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected