Test that the timeouts are disabled on a generic socket object and it's _sock object if present.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected