mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[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 cbfe3023e4
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
825b83da96
commit
23e8fc2775
1 changed files with 4 additions and 1 deletions
|
@ -513,7 +513,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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue