]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (#145593)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Mar 2026 20:34:09 +0000 (21:34 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Mar 2026 20:34:09 +0000 (21:34 +0100)
commit6e5e4edfd21b86df16648b82bd0962e42cfc2994
treed660b94034560dcdc7673f018d77530a7ccfb102
parent20438820ffa359d2e7b8fbd5cfd8f30329314bc1
[3.14] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (#145593)

gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-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.
(cherry picked from commit 6c8c72f7feb4207c62ac857443943e61977d6a94)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/pythoninfo.py
Lib/test/test_socket.py