]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (#145809) 3.12
authorPetr Viktorin <encukou@gmail.com>
Wed, 15 Apr 2026 13:41:03 +0000 (15:41 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Apr 2026 13:41:03 +0000 (15:41 +0200)
commite378eda980ff786eb2211738aac0b6f76da88f91
tree39fc56cffef7a3d4413a7fcc84265d9b8c987bdc
parent82b53a619eda570120d7f17351b25c813a61325d
[3.12] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (#145809)

* [3.12] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (GH-145594)

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)
(cherry picked from commit 16dbbe5)

* [3.13] gh-145548: Don't use VMADDR_CID_LOCAL from `socket` (GH-145735)

VMADDR_CID_LOCAL was added to `socekt` in 3.14. The test needs a
local constant in setUp(), as in clientSetUp().

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/pythoninfo.py
Lib/test/test_socket.py