]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-119461: Fix ThreadedVSOCKSocketStreamTest (#119465) (#119479)
authorVictor Stinner <vstinner@python.org>
Thu, 23 May 2024 22:27:04 +0000 (00:27 +0200)
committerGitHub <noreply@github.com>
Thu, 23 May 2024 22:27:04 +0000 (22:27 +0000)
commitc750061047ee520d8299334df4b112fd983d7e48
tree0d7f12d3e8d9f9a78c121d7f3ad347b0f0d8b788
parentd98d6b1776996484e05ec6b755a6770977a5000a
[3.13] gh-119461: Fix ThreadedVSOCKSocketStreamTest (#119465) (#119479)

gh-119461: Fix ThreadedVSOCKSocketStreamTest (#119465)

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).

(cherry picked from commit e94dbe4ed83460f18bd72563c5f09f6cdc71f604)
Lib/test/test_socket.py