From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 17 Feb 2026 10:12:25 +0000 (+0100) Subject: [3.13] gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on... X-Git-Tag: v3.13.13~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6579e0381328d9268154e9dba4c62ac322e30f27;p=thirdparty%2FPython%2Fcpython.git [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 63531a3867cf4f8b5a7088fb7667d33534c43ff7) Co-authored-by: Victor Stinner --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 2a1f0217113d..55e4a8a66bee 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -2171,11 +2171,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()