Skip to content

Commit 6579e03

Browse files
[3.13] gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on Solaris (GH-144890) (#144902)
gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on Solaris (GH-144890) Use socket.SCM_RIGHTS operation. (cherry picked from commit 63531a3) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent c3b5900 commit 6579e03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_socket.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,11 +2171,11 @@ def test_sendmsg_reentrant_ancillary_mutation(self):
21712171
class Mut:
21722172
def __index__(self):
21732173
seq.clear()
2174-
return 0
2174+
return socket.SCM_RIGHTS
21752175

21762176
seq = [
2177-
(socket.SOL_SOCKET, Mut(), b'x'),
2178-
(socket.SOL_SOCKET, 0, b'x'),
2177+
(socket.SOL_SOCKET, Mut(), b'xxxx'),
2178+
(socket.SOL_SOCKET, socket.SCM_RIGHTS, b'xxxx'),
21792179
]
21802180

21812181
left, right = socket.socketpair()

0 commit comments

Comments
 (0)