Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-128116: Skip test_socket VSOCK testStream() on PermissionError
  • Loading branch information
vstinner committed Dec 20, 2024
commit e587ce5ff8f5f985dd56df591c567ef992048b49
5 changes: 4 additions & 1 deletion Lib/test/test_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,10 @@ def clientSetUp(self):
self.cli.connect((cid, VSOCKPORT))

def testStream(self):
msg = self.conn.recv(1024)
try:
msg = self.conn.recv(1024)
except PermissionError as exc:
self.skipTest(repr(exc))
self.assertEqual(msg, MSG)

def _testStream(self):
Expand Down