Add transport layer tests

This commit is contained in:
2025-12-02 21:02:00 +00:00
parent 034d80388f
commit 226fb0ad0d
2 changed files with 265 additions and 0 deletions

View File

@@ -147,6 +147,8 @@ class TCPTransport:
# Decode and strip whitespace
return response_bytes.decode(self._encoding).strip()
except ConnectionError:
raise # Re-raise ConnectionError as-is
except socket.timeout as err:
raise TimeoutError("Read timeout") from err
except (socket.error, OSError, UnicodeDecodeError) as err: