https://github.com/python/cpython/commit/43586a480421981013e77ae60cb8114c5ccaf688 commit: 43586a480421981013e77ae60cb8114c5ccaf688 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2024-12-20T13:32:58Z summary:
[3.13] gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) (#128123) gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) (cherry picked from commit cbfe3023e46b544b80ea1a38a8c900c6fb881554) Co-authored-by: Victor Stinner <[email protected]> files: M Lib/test/test_socket.py diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 28764536fa0400..c68a2f234d1e99 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -548,7 +548,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]
