Skip to content

Commit 02b0ddd

Browse files
GalaxySnailpicnixz
andauthored
Apply suggestions from code review
update comments Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent bb1c5ad commit 02b0ddd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/test/test_socket.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7378,8 +7378,8 @@ def test_send_recv_fds_with_addrs(self):
73787378

73797379
socket.send_fds(sock1, [MSG], [rfd], address=sock2_addr)
73807380
if sys.platform.startswith("freebsd"):
7381-
# FreeBSD requires at least CMSG_LEN(2 * sizeof(int)), otherwise
7382-
# the cmsg will be truncated
7381+
# FreeBSD requires at least CMSG_LEN(2*sizeof(int)),
7382+
# otherwise the access control message is truncated.
73837383
recv_fds_len = 2
73847384
else:
73857385
recv_fds_len = 1
@@ -7449,8 +7449,8 @@ def test_send_fds_dontwait(self):
74497449
socket.send_fds(sock1, [MSG], [rfd], socket.MSG_DONTWAIT)
74507450

74517451
if sys.platform.startswith("freebsd"):
7452-
# FreeBSD requires at least CMSG_LEN(2 * sizeof(int)), otherwise
7453-
# the cmsg will be truncated
7452+
# FreeBSD requires at least CMSG_LEN(2*sizeof(int)),
7453+
# otherwise the access control message is truncated.
74547454
recv_fds_len = 2
74557455
else:
74567456
recv_fds_len = 1

0 commit comments

Comments
 (0)