8000 [3.11] gh-119461: Restore the testSocket VSOCK skipUnless removed by … · python/cpython@552ec42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 552ec42

Browse files
[3.11] gh-119461: Restore the testSocket VSOCK skipUnless F0A9 removed by PR GH-119465 (GH-129561) (#129566)
gh-119461: Restore the testSocket VSOCK skipUnless removed by PR GH-119465 (GH-129561) Restore the skipUnless removed by GH-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. (cherry picked from commit e1006ce) Co-authored-by: Gregory P. Smith <greg@krypto.org>
1 parent 2068b03 commit 552ec42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_socket.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ def clientTearDown(self):
472472
@unittest.skipIf(WSL, 'VSOCK does not work on Microsoft WSL')
473473
@unittest.skipUnless(HAVE_SOCKET_VSOCK,
474474
'VSOCK sockets required for this test.')
475+
@unittest.skipUnless(get_cid() != 2, # VMADDR_CID_HOST
476+
"This test can only be run on a virtual guest.")
475477
class ThreadedVSOCKSocketStreamTest(unittest.TestCase, ThreadableTest):
476478

477479
def __init__(self, methodName='runTest'):

0 commit comments

Comments
 (0)
0