File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 46
46
47
47
VSOCKPORT = 1234
48
48
AIX = platform .system () == "AIX"
49
+ WSL = "microsoft-standard-WSL" in platform .release ()
49
50
50
51
try :
51
52
import _socket
@@ -481,6 +482,7 @@ def clientTearDown(self):
481
482
ThreadableTest .clientTearDown (self )
482
483
483
484
@unittest .skipIf (fcntl is None , "need fcntl" )
485
+ @unittest .skipIf (WSL , 'VSOCK does not work on Microsoft WSL' )
484
486
@unittest .skipUnless (HAVE_SOCKET_VSOCK ,
485
487
'VSOCK sockets required for this test.' )
486
488
@unittest .skipUnless (get_cid () != 2 ,
@@ -497,6 +499,7 @@ def setUp(self):
497
499
self .serv .bind ((socket .VMADDR_CID_ANY , VSOCKPORT ))
498
500
self .serv .listen ()
499
501
self .serverExplicitReady ()
502
+ self .serv .settimeout (support .LOOPBACK_TIMEOUT )
500
503
self .conn , self .connaddr = self .serv .accept ()
501
504
self .addCleanup (self .conn .close )
502
505
You can’t perform that action at this time.
0 commit comments