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
@@ -510,6 +511,7 @@ def clientTearDown(self):
510
511
ThreadableTest .clientTearDown (self )
511
512
512
513
@unittest .skipIf (fcntl is None , "need fcntl" )
514
+ @unittest .skipIf (WSL , 'VSOCK does not work on Microsoft WSL' )
513
515
@unittest .skipUnless (HAVE_SOCKET_VSOCK ,
514
516
'VSOCK sockets required for this test.' )
515
517
@unittest .skipUnless (get_cid () != 2 ,
@@ -526,6 +528,7 @@ def setUp(self):
526
528
self .serv .bind ((socket .VMADDR_CID_ANY , VSOCKPORT ))
527
529
self .serv .listen ()
528
530
self .serverExplicitReady ()
531
+ self .serv .settimeout (support .LOOPBACK_TIMEOUT )
529
532
self .conn , self .connaddr = self .serv .accept ()
530
533
self .addCleanup (self .conn .close )
531
534
You can’t perform that action at this time.
0 commit comments