Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Replace hardcoded 2 with socket.VMADDR_CID_HOST
  • Loading branch information
vstinner committed May 23, 2024
commit 8b3b57b087ac127da3477d2595ad787ea3f0f667
2 changes: 1 addition & 1 deletion Lib/test/test_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def clientTearDown(self):
@unittest.skipIf(WSL, 'VSOCK does not work on Microsoft WSL')
@unittest.skipUnless(HAVE_SOCKET_VSOCK,
'VSOCK sockets required for this test.')
@unittest.skipIf(get_cid() in (2, socket.VMADDR_CID_ANY),
@unittest.skipIf(get_cid() in (socket.VMADDR_CID_HOST, socket.VMADDR_CID_ANY),
"This test can only be run on a virtual guest.")
class ThreadedVSOCKSocketStreamTest(unittest.TestCase, ThreadableTest):

Expand Down