]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119461: Fix ThreadedVSOCKSocketStreamTest (#119465)
authorVictor Stinner <vstinner@python.org>
Thu, 23 May 2024 21:26:09 +0000 (23:26 +0200)
committerGitHub <noreply@github.com>
Thu, 23 May 2024 21:26:09 +0000 (23:26 +0200)
commite94dbe4ed83460f18bd72563c5f09f6cdc71f604
tree510ccc893c476694bd9a50c167f6ca74346059d3
parentbe1dfccdf2c5c7671b8a549e969b8cf7d60d9936
gh-119461: Fix ThreadedVSOCKSocketStreamTest (#119465)

Add socket.VMADDR_CID_LOCAL constant.

Fix ThreadedVSOCKSocketStreamTest: if get_cid() returns the host
address or the "any" address, use the local communication address
(loopback): VMADDR_CID_LOCAL.

On Linux 6.9, apparently, the /dev/vsock device is now available but
get_cid() returns VMADDR_CID_ANY (-1).
Lib/test/test_socket.py
Misc/NEWS.d/next/Library/2024-05-23-15-48-17.gh-issue-119461.82KqUW.rst [new file with mode: 0644]
Modules/socketmodule.c