diff options
author | Victor Stinner <vstinner@python.org> | 2024-12-20 12:38:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-20 12:38:00 (GMT) |
commit | cbfe3023e46b544b80ea1a38a8c900c6fb881554 (patch) | |
tree | d47e76675e4ea9a913211059163bf045589240cf /Lib | |
parent | 0974d7bb866062ed4aaa40f705d6cc4c294d99f1 (diff) | |
download | cpython-cbfe3023e46b544b80ea1a38a8c900c6fb881554.zip cpython-cbfe3023e46b544b80ea1a38a8c900c6fb881554.tar.gz cpython-cbfe3023e46b544b80ea1a38a8c900c6fb881554.tar.bz2 |
gh-128116: Skip test_socket VSOCK testStream() on PermissionError (#128120)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_socket.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 307d6e8..aac213e 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -547,7 +547,10 @@ class ThreadedVSOCKSocketStreamTest(unittest.TestCase, ThreadableTest): 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): |