https://github.com/python/cpython/commit/cbfe3023e46b544b80ea1a38a8c900c6fb881554
commit: cbfe3023e46b544b80ea1a38a8c900c6fb881554
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2024-12-20T13:38:00+01:00
summary:

gh-128116: Skip test_socket VSOCK testStream() on PermissionError (#128120)

files:
M Lib/test/test_socket.py

diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 307d6e886c617f..aac213e36aecf0 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -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):

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to