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