Skip to content

Commit cbfe302

Browse files
authored
gh-128116: Skip test_socket VSOCK testStream() on PermissionError (#128120)
1 parent 0974d7b commit cbfe302

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_socket.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,10 @@ def clientSetUp(self):
547547
self.cli.connect((cid, VSOCKPORT))
548548

549549
def testStream(self):
550-
msg = self.conn.recv(1024)
550+
try:
551+
msg = self.conn.recv(1024)
552+
except PermissionError as exc:
553+
self.skipTest(repr(exc))
551554
self.assertEqual(msg, MSG)
552555

553556
def _testStream(self):

0 commit comments

Comments
 (0)