Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 23e8fc2

Browse filesBrowse 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 <vstinner@python.org>
1 parent 825b83d commit 23e8fc2
Copy full SHA for 23e8fc2

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

‎Lib/test/test_socket.py

Copy file name to clipboardExpand all lines: Lib/test/test_socket.py
+4-1Lines changed: 4 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.