Skip to content

Commit 31cc676

Browse files
committed
add pragma: no cover for network read functions
1 parent ea23f97 commit 31cc676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

showcert/getremote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414

15-
def recv_until_newline(sock: socket.socket, timeout: float = 5.0) -> bytes:
15+
def recv_until_newline(sock: socket.socket, timeout: float = 5.0) -> bytes: # pragma: no cover
1616
"""Read from socket until '\n' seen or timeout expires."""
1717
sock.setblocking(False)
1818
data = bytearray()
@@ -31,7 +31,7 @@ def recv_until_newline(sock: socket.socket, timeout: float = 5.0) -> bytes:
3131
continue
3232
return bytes(data)
3333

34-
def recv_smtp(sock: socket.socket, timeout: float = 5.0) -> bytes:
34+
def recv_smtp(sock: socket.socket, timeout: float = 5.0) -> bytes: # pragma: no cover
3535
"""
3636
Read full SMTP reply (single or multi-line) until final line received or timeout.
3737
RFC 5321: lines start with 3 digits + ('-' for continuation or ' ' for end).

0 commit comments

Comments
 (0)