Skip to content

Commit 43586a4

Browse files
[3.13] gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) (#128123)
gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) (cherry picked from commit cbfe302) Co-authored-by: Victor Stinner <[email protected]>
1 parent f320f74 commit 43586a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_socket.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,10 @@ def clientSetUp(self):
548548
self.cli.connect((cid, VSOCKPORT))
549549

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

554557
def _testStream(self):

0 commit comments

Comments
 (0)