mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-128116: Skip test_socket VSOCK testStream() on PermissionError (#128120)
This commit is contained in:
parent
0974d7bb86
commit
cbfe3023e4
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue