Skip to content

gh-155621: Fix unrepresentable defaults in socket.sendmsg() signature - #155623

Open
lpyu001 wants to merge 1 commit into
python:mainfrom
lpyu001:socket
Open

gh-155621: Fix unrepresentable defaults in socket.sendmsg() signature#155623
lpyu001 wants to merge 1 commit into
python:mainfrom
lpyu001:socket

Conversation

@lpyu001

@lpyu001 lpyu001 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Comment thread Lib/test/test_socket.py
Comment on lines +949 to +956
@unittest.skipUnless(hasattr(socket.socket, "sendmsg"),
"sendmsg not supported")
def test_sendmsg_signature(self):
self.assertEqual(
str(inspect.signature(socket.socket.sendmsg)),
"(self, buffers, ancdata=(), flags=0, address=None, /)",
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing the function's signature seems pointless and unusual.

@lpyu001

lpyu001 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

cc @kumaraditya303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants