From: Victor Stinner Date: Tue, 17 Feb 2026 09:49:30 +0000 (+0100) Subject: gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on Solaris... X-Git-Tag: v3.15.0a7~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63531a3867cf4f8b5a7088fb7667d33534c43ff7;p=thirdparty%2FPython%2Fcpython.git gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on Solaris (#144890) Use socket.SCM_RIGHTS operation. --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 3806ad988db2..9ad5b29ea58e 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -2228,11 +2228,11 @@ class GeneralModuleTests(unittest.TestCase): class Mut: def __index__(self): seq.clear() - return 0 + return socket.SCM_RIGHTS seq = [ - (socket.SOL_SOCKET, Mut(), b'x'), - (socket.SOL_SOCKET, 0, b'x'), + (socket.SOL_SOCKET, Mut(), b'xxxx'), + (socket.SOL_SOCKET, socket.SCM_RIGHTS, b'xxxx'), ] left, right = socket.socketpair()