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

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