]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (#145589)
authorVictor Stinner <vstinner@python.org>
Fri, 6 Mar 2026 15:51:36 +0000 (16:51 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Mar 2026 15:51:36 +0000 (16:51 +0100)
commit6c8c72f7feb4207c62ac857443943e61977d6a94
tree6b4f0d1be8452f1ae6f8a6fa0af8b21ffe74d771
parentd931725bc850cd096f6703bc285e885f1e015f05
gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (#145589)

Prefer VMADDR_CID_LOCAL instead of VMADDR_CID_ANY for bind() in the
server. Skip the test if bind() fails with EADDRNOTAVAIL.

Log vsock CID in test.pythoninfo.
Lib/test/pythoninfo.py
Lib/test/test_socket.py