diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index c68a2f234d1e99..fefb2d42d558b0 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -521,6 +521,8 @@ 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.skipUnless(get_cid() != 2, # VMADDR_CID_HOST + "This test can only be run on a virtual guest.") class ThreadedVSOCKSocketStreamTest(unittest.TestCase, ThreadableTest): def __init__(self, methodName='runTest'):