Visitar URL original
[3.11] gh-119461: Fix ThreadedVSOCKSocketStreamTest by vstinner · Pull Request #129171 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
gh-128116: Skip test_socket VSOCK testStream() on PermissionError (#1…
…28120)

(cherry picked from commit cbfe302)
  • Loading branch information
vstinner committed Jan 22, 2025
commit bc8b07d1eb7fe83a342ef6be7e9d602de0188e85
5 changes: 4 additions & 1 deletion Lib/test/test_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,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