Skip to content

Commit 23e8fc2

Browse files
[3.12] gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) (#128124)
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 825b83d commit 23e8fc2

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
@@ -513,7 +513,10 @@ def clientSetUp(self):
513513
self.cli.connect((cid, VSOCKPORT))
514514

515515
def testStream(self):
516-
msg = self.conn.recv(1024)
516+
try:
517+
msg = self.conn.recv(1024)
518+
except PermissionError as exc:
519+
self.skipTest(repr(exc))
517520
self.assertEqual(msg, MSG)
518521

519522
def _testStream(self):

0 commit comments

Comments
 (0)