aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2025-02-01 20:46:56 -0800
committerGitHub <noreply@github.com>2025-02-01 20:46:56 -0800
commite1006ce1ded1b18972888ef057718dba6f2c7edd (patch)
tree5398a8e6bdc02aedd2ca1d8c4632ad4ccc905bb9 /Lib/test/test_socket.py
parentcf4c4ecc26c7e3b89f2e56893260a8a3319dab3d (diff)
downloadcpython-e1006ce1ded1b18972888ef057718dba6f2c7edd.tar.gz
cpython-e1006ce1ded1b18972888ef057718dba6f2c7edd.zip
gh-119461: Restore the testSocket VSOCK skipUnless removed by PR #119465 (#129561)
Restore the skipUnless removed by #119465. This test can only pass on virtual machines, not actual machines. actual machines see: ``` self.cli.connect((cid, VSOCKPORT)) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ OSError: [Errno 19] No such device ``` Reproduced on (Linux) Ubuntu 24.04.1 running 6.8.0-52-generic.
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index faf326d9164..b77fa3cb215 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -520,6 +520,8 @@ class ThreadedRDSSocketTest(SocketRDSTest, ThreadableTest):
@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'):