Visitar URL original
[3.12] gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) by miss-islington · Pull Request #128124 · 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
Next Next commit
gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH…
…-128120)

(cherry picked from commit cbfe302)

Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
vstinner authored and miss-islington committed Dec 20, 2024
commit 19dc605304fda405b89f58d45226b0929544585e
5 changes: 4 additions & 1 deletion Lib/test/test_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,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