Skip to content

Commit 63531a3

Browse files
authored
gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on Solaris (#144890)
Use socket.SCM_RIGHTS operation.
1 parent 2f7634c commit 63531a3

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
@@ -2228,11 +2228,11 @@ def test_sendmsg_reentrant_ancillary_mutation(self):
22282228
class Mut:
22292229
def __index__(self):
22302230
seq.clear()
2231-
return 0
2231+
return socket.SCM_RIGHTS
22322232

22332233
seq = [
2234-
(socket.SOL_SOCKET, Mut(), b'x'),
2235-
(socket.SOL_SOCKET, 0, b'x'),
2234+
(socket.SOL_SOCKET, Mut(), b'xxxx'),
2235+
(socket.SOL_SOCKET, socket.SCM_RIGHTS, b'xxxx'),
22362236
]
22372237

22382238
left, right = socket.socketpair()

0 commit comments

Comments
 (0)