Skip to content

Commit 2df57db

Browse files
[3.14] gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on Solaris (GH-144890) (#144901)
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 8f7e9c2 commit 2df57db

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
@@ -2182,11 +2182,11 @@ def test_sendmsg_reentrant_ancillary_mutation(self):
21822182
class Mut:
21832183
def __index__(self):
21842184
seq.clear()
2185-
return 0
2185+
return socket.SCM_RIGHTS
21862186

21872187
seq = [
2188-
(socket.SOL_SOCKET, Mut(), b'x'),
2189-
(socket.SOL_SOCKET, 0, b'x'),
2188+
(socket.SOL_SOCKET, Mut(), b'xxxx'),
2189+
(socket.SOL_SOCKET, socket.SCM_RIGHTS, b'xxxx'),
21902190
]
21912191

21922192
left, right = socket.socketpair()

0 commit comments

Comments
 (0)