Skip to content

Commit a13c261

Browse files
vstinnerbrijkapadia
authored andcommitted
pythongh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on Solaris (python#144890)
Use socket.SCM_RIGHTS operation.
1 parent cb8ce7e commit a13c261

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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)