Errors generated from an unconnected socket should bubble up.
(self)
| 130 | |
| 131 | @pytest.mark.timeout(PER_TEST_TIMEOUT) |
| 132 | def test_start_closed_socket(self) -> None: |
| 133 | """Errors generated from an unconnected socket should bubble up.""" |
| 134 | sock = socket.socket(socket.AF_INET) |
| 135 | context = ssl.create_default_context() |
| 136 | sock.close() |
| 137 | with pytest.raises(OSError): |
| 138 | SSLTransport(sock, context) |
| 139 | |
| 140 | @pytest.mark.timeout(PER_TEST_TIMEOUT) |
| 141 | def test_close_after_handshake(self) -> None: |
nothing calls this directly
no test coverage detected