https://github.com/python/cpython/commit/63531a3867cf4f8b5a7088fb7667d33534c43ff7
commit: 63531a3867cf4f8b5a7088fb7667d33534c43ff7
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-02-17T10:49:30+01:00
summary:
gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on
Solaris (#144890)
Use socket.SCM_RIGHTS operation.
files:
M Lib/test/test_socket.py
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 3806ad988db214..9ad5b29ea58ecb 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -2228,11 +2228,11 @@ def test_sendmsg_reentrant_ancillary_mutation(self):
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()
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]